/* YieldMind.ai - Main Stylesheet */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --yieldmind-primary: #1a365d;
    --yieldmind-secondary: #0d9488;
    --yieldmind-accent: #10b981;
    --yieldmind-light: #f0fdfa;
    --yieldmind-dark: #0f172a;
    --gradient-start: #1e3a5f;
    --gradient-end: #0d9488;
}

/* ========================================
   Base Styles
   ======================================== */
html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   Navigation Styles
   ======================================== */
#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--yieldmind-secondary), var(--yieldmind-accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--yieldmind-secondary), var(--yieldmind-accent));
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

.btn-outline {
    border: 2px solid var(--yieldmind-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--yieldmind-primary);
    color: white;
}

/* ========================================
   Animation Keyframes
   ======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    }
}

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

/* Animation Classes */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

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

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

/* ========================================
   Card Styles
   ======================================== */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--yieldmind-secondary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* ========================================
   Pricing Card Styles
   ======================================== */
.pricing-card {
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* ========================================
   Testimonial Styles
   ======================================== */
.testimonial-card {
    transition: all 0.3s ease;
}

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

/* ========================================
   Stats Counter Animation
   ======================================== */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--yieldmind-secondary), var(--yieldmind-accent));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   Loading Spinner
   ======================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(13, 148, 136, 0.2);
    border-top-color: var(--yieldmind-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--yieldmind-secondary), var(--yieldmind-accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--yieldmind-primary);
}

/* ========================================
   Selection Styles
   ======================================== */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: var(--yieldmind-primary);
}

/* ========================================
   Focus Styles for Accessibility
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--yieldmind-secondary);
    outline-offset: 2px;
}

/* ========================================
   Utility Classes
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--yieldmind-secondary), var(--yieldmind-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--yieldmind-secondary), var(--yieldmind-accent));
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   Hero Section Specific
   ======================================== */
.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 50%, #ecfdf5 100%);
}

/* ========================================
   Footer Styles
   ======================================== */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--yieldmind-accent);
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--yieldmind-accent);
}

.toast.error {
    border-left: 4px solid #ef4444;
}
