/* Upshot Website Custom Styles */
/* Based on upshotindia.com branding */

:root {
    /* Upshot Brand Colors - Updated to match logo */
    --primary-blue: #1A2B5B;
    --secondary-blue: #1e40af;
    --accent-magenta: #E84784;
    --accent-orange: #f97316;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --error-red: #ef4444;
    --purple: #E84784;
    --indigo: #6366f1;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1A2B5B 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #E84784 0%, #f97316 100%);
    --gradient-brand: linear-gradient(135deg, #1A2B5B 0%, #E84784 100%);
    --gradient-hero: linear-gradient(135deg, #f0f4ff 0%, #fdf2f8 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Font Family */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

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

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite;
}

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

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

/* Custom Gradient Backgrounds */
.gradient-hero {
    background: var(--gradient-hero);
}

.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-secondary {
    background: var(--gradient-secondary);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 1px;
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 24px;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-feature {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Statistics Counter */
.stat-counter {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Infographic Styles */
.infographic-container {
    position: relative;
    padding: 60px 0;
}

.infographic-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.infographic-item {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
}

.infographic-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.infographic-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infographic-item:hover::before {
    opacity: 1;
}

/* Problem Section Dark Theme */
.dark-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

.dark-section .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* Currency Toggle */
.currency-toggle {
    display: inline-flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.currency-toggle button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.currency-toggle button.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Market Projections */
.projection-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.projection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.projection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .stat-counter {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .infographic-container {
        padding: 40px 0;
    }
    
    .card-feature {
        padding: 24px 16px;
    }
    
    .projection-card {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .stat-counter {
        font-size: 1.5rem;
    }
    
    .infographic-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px 0;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000ff;
        --secondary-blue: #0066cc;
        --gray-600: #000000;
        --gray-700: #000000;
        --gray-800: #000000;
        --gray-900: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Upshot Brand-specific Styles */
.text-brand-blue {
    color: #1A2B5B !important;
}

.text-brand-magenta {
    color: #E84784 !important;
}

.bg-brand-blue {
    background-color: #1A2B5B !important;
}

.bg-brand-magenta {
    background-color: #E84784 !important;
}

.border-brand-blue {
    border-color: #1A2B5B !important;
}

.border-brand-magenta {
    border-color: #E84784 !important;
}

.gradient-brand-primary {
    background: linear-gradient(135deg, #1A2B5B 0%, #E84784 100%) !important;
}

.hover\:text-brand-blue:hover {
    color: #1A2B5B !important;
}

.hover\:text-brand-magenta:hover {
    color: #E84784 !important;
}

/* Logo enhancement */
#logo, #footer-logo {
    transition: all 0.3s ease;
}

/* Logo for light backgrounds (header) - White background logo, no extra styling needed */
#logo {
    /* Clean styling for white background logo */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    border-radius: 6px;
}

#logo:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Logo for dark backgrounds (footer) - Black background logo with brand colors preserved */
#footer-logo {
    background: transparent;
    border-radius: 6px;
    /* No filter needed - logo already has black background with correct brand colors */
}

#footer-logo:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* Alternative logo styles for different contexts */
.logo-on-white {
    background: white;
    border-radius: 8px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-on-dark {
    filter: invert(1);
    background: transparent;
}

.logo-on-colored {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 4px 8px;
    backdrop-filter: blur(10px);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}