/* ========================================
   Stock Sathi Landing Page - Custom CSS
   Modern SaaS Fintech Theme
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --secondary-color: #1976d2;
    --accent-color: #42a5f5;
    --success-color: #00c853;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    --dark-color: #1a1a2e;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    --gradient-hero: linear-gradient(135deg, #002171 0%, #0d47a1 50%, #1976d2 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

/* ===== Hero Section ===== */
.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.text-gradient {
    background: linear-gradient(135deg, #42a5f5 0%, #90caf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

.stat-item h3 {
    color: var(--white);
    font-size: 2rem;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper img {
    border: 4px solid rgba(255, 255, 255, 0.2);
}

/* ===== Hero Shapes ===== */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation: float 7s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== Feature Cards ===== */
.feature-card {
    transition: var(--transition);
    border-radius: 16px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* ===== Pricing Cards ===== */
.pricing-card {
    transition: var(--transition);
    border-radius: 16px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.pricing-card .card-body {
    padding: 2rem;
}

.pricing-card h2 {
    color: var(--primary-color);
}

.pricing-card .badge {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== Sponsor Logos ===== */
.sponsor-logo {
    transition: var(--transition);
    opacity: 0.6;
}

.sponsor-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: var(--transition);
    border-radius: 16px;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}

.testimonial-card .bi-star-fill {
    font-size: 1.25rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color) !important;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color) !important;
    transform: translateX(4px);
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-4px);
    color: var(--accent-color) !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .display-3 {
        font-size: 2.5rem;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 767px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== Utility Classes ===== */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-4 {
    border-radius: 16px !important;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}