/* 
* Investfly Website Styles
* A modern, gradient-rich design for algorithmic trading platform
*/

/* Variables */
:root {
    /* Primary Colors */
    --primary: #4761ff;
    --primary-dark: #3a4dcc;
    --primary-light: #6b7fff;
    
    /* Secondary Colors */
    --secondary: #ff47b7;
    --secondary-dark: #cc3a92;
    --secondary-light: #ff6bc4;
    
    /* Gradient Colors */
    --gradient-1: #4761ff;
    --gradient-2: #6b7fff;
    --gradient-3: #8367ff;
    --gradient-4: #9c56ff;
    --gradient-5: #b346ff;
    --gradient-6: #cf36fe;
    --gradient-7: #e626fc;
    --gradient-8: #ff16eb;
    
    /* Neutral Colors */
    --dark: #081240;
    --light: #ffffff;
    --gray-light: #f1f5f9;
    --gray: #94a3b8;
    --gray-dark: #334155;
    
    /* Spacing */
    --section-spacing: 6rem;
    --section-spacing-sm: 3rem;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-6));
    border: none;
    box-shadow: 0 4px 15px rgba(71, 97, 255, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-5));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 97, 255, 0.35);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-6));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 97, 255, 0.15);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(8, 18, 64, 0.95), rgba(25, 35, 95, 0.95));
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-6), var(--gradient-7));
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 12rem 0 8rem;
    background: linear-gradient(135deg, var(--dark), #19245f);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-8));
    opacity: 0.15;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gradient-7), transparent 70%);
    top: -400px;
    right: -400px;
    opacity: 0.1;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    transform: translateY(5px);
}

.wave-divider svg {
    height: 150px;
    width: 100%;
    display: block;
}

/* Page Headers */
.page-header {
    position: relative;
    padding: 8rem 0 8rem;
    background: linear-gradient(135deg, var(--dark), #19245f);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-8));
    opacity: 0.15;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.page-header p.lead {
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(71, 97, 255, 0.1), rgba(207, 54, 254, 0.1));
}

/* CTA Section */
.cta {
    position: relative;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-8));
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    top: -300px;
    right: -300px;
    z-index: 0;
}

.cta::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    bottom: -200px;
    left: -200px;
    z-index: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark), #16203f);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-8));
    opacity: 0.08;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.pricing-popular {
    transform: scale(1.05);
    z-index: 2;
}

.pricing-popular:hover {
    transform: scale(1.05) translateY(-7px);
}

.pricing-popular-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background: linear-gradient(135deg, var(--gradient-3), var(--gradient-5));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pricing-value {
    font-weight: 800;
}

.pricing-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-amount {
    font-size: 3.5rem;
}

.pricing-duration {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

/* Team Cards */
.team-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Stats Section */
.stats {
    position: relative;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-8));
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    top: -300px;
    left: -300px;
    z-index: 0;
}

.stats .container {
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(71, 97, 255, 0.15);
}

/* Accordion */
.accordion-button {
    border-radius: 8px !important;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(71, 97, 255, 0.08), rgba(207, 54, 254, 0.08));
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(71, 97, 255, 0.5);
}

/* Contact Info */
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(71, 97, 255, 0.1), rgba(207, 54, 254, 0.1));
}

/* Media Queries */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(8, 18, 64, 0.95);
        padding: 1.5rem;
        border-radius: 0 0 16px 16px;
        margin-top: 0.5rem;
    }
    
    .navbar-dark .navbar-nav .nav-link.active::after {
        left: 0;
        right: 80%;
    }
    
    .hero-section {
        padding: 10rem 0 6rem;
    }
    
    .pricing-popular {
        transform: scale(1);
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .pricing-popular:hover {
        transform: translateY(-7px);
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding: 8rem 0 4rem;
    }
    
    .hero-section .text-lg-start {
        text-align: center !important;
    }
    
    .hero-section .btn {
        margin-bottom: 0.5rem;
    }
    
    .hero-section img {
        margin-top: 3rem;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Custom Page Styles */
/* Home */
.how-it-works .step {
    transition: all 0.3s ease;
}

.how-it-works .step:hover {
    transform: translateX(5px);
}

.testimonials .card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.testimonials .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-avatar img {
    border: 3px solid var(--primary-light);
}

/* Features */
.feature-comparison .table {
    border-radius: 12px;
    overflow: hidden;
}

.feature-comparison th {
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-6));
    border: none;
}

/* Backgrounds for sections */
.bg-light {
    background-color: var(--gray-light) !important;
} 