/* ============================================
   DARK THEME - Fortex Trading
   Modern, Sleek, Professional
   ============================================ */

:root {
    /* Primary Colors */
    --primary-color: #818cf8;
    --primary-light: #a5b4fc;
    --primary-dark: #6366f1;
    
    /* Secondary Colors */
    --secondary-color: #a78bfa;
    --accent-color: #f472b6;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --info-color: #22d3ee;
    
    /* Background Colors - Vibrant Dark Gradients */
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-secondary: linear-gradient(135deg, #2e1a47 0%, #3b2667 100%);
    --bg-tertiary: linear-gradient(135deg, #1f4068 0%, #162447 100%);
    --bg-gradient: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-light: #64748b;
    
    /* Card & Surface - Gradient Cards */
    --card-bg: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
    --card-hover: linear-gradient(135deg, rgba(51, 65, 85, 0.98) 0%, rgba(71, 85, 105, 0.98) 100%);
    --surface-bg: linear-gradient(135deg, #2e1a47 0%, #3b2667 100%);
    
    /* Border Colors */
    --border-color: #334155;
    --border-light: #475569;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    --gradient-secondary: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
    --gradient-success: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --gradient-hero: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    
    /* Overlay */
    --overlay-light: rgba(15, 23, 42, 0.95);
    --overlay-dark: rgba(0, 0, 0, 0.7);
}

body {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(129, 140, 248, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   NAVIGATION - DARK THEME
   ============================================ */
.navbar {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.95) 0%, rgba(48, 43, 99, 0.95) 100%);
    border-bottom: 1px solid rgba(129, 140, 248, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(129, 140, 248, 0.1);
}

.logo a {
    color: var(--text-primary);
}

.nav-link {
    color: rgba(241, 245, 249, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(129, 140, 248, 0.8);
}

.theme-toggle {
    color: var(--text-secondary);
    background: rgba(129, 140, 248, 0.2);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(129, 140, 248, 0.4);
    color: white;
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.5);
}

.mobile-menu-toggle span {
    background-color: var(--text-primary);
}

/* ============================================
   HERO SECTION - DARK THEME
   ============================================ */
.hero {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: pulse 8s ease-in-out infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(129, 140, 248, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   CARDS - DARK THEME
   ============================================ */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.card:hover {
    background-color: var(--card-hover);
    border-color: var(--primary-color);
}

/* ============================================
   STATS/COUNTERS - DARK THEME
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #581c87 100%);
    color: white;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   TRADING PLANS - DARK THEME
   ============================================ */
.plan-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(129, 140, 248, 0.3);
}

.plan-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    position: relative;
}

.plan-badge {
    background: var(--gradient-primary);
    color: white;
}

.plan-price {
    color: var(--text-primary);
}

.plan-features {
    color: var(--text-secondary);
}

.plan-features i {
    color: var(--success-color);
}

/* ============================================
   PROGRESS BARS - DARK THEME
   ============================================ */
.progress-bar {
    background-color: var(--bg-tertiary);
    border-radius: 100px;
    overflow: hidden;
    height: 12px;
}

.progress-fill {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   TESTIMONIALS - DARK THEME
   ============================================ */
.testimonials-section {
    background-color: var(--bg-secondary);
}

.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.testimonial-rating {
    color: #fbbf24;
}

.testimonial-author {
    color: var(--text-tertiary);
}

/* ============================================
   FAQ SECTION - DARK THEME
   ============================================ */
.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.faq-question {
    background-color: transparent;
    color: var(--text-primary);
    padding: var(--spacing-md);
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: var(--spacing-md);
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ============================================
   CONTACT FORM - DARK THEME
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 2;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
    background-color: rgba(51, 65, 85, 0.9);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23818cf8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-control option {
    background-color: #1e293b;
    color: var(--text-primary);
    padding: 0.5rem;
}

select.form-control option:hover,
select.form-control option:checked {
    background-color: var(--primary-color);
    color: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   ROADMAP/TIMELINE - DARK THEME
   ============================================ */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

/* ============================================
   FOOTER - DARK THEME
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
}

.footer-logo a {
    color: var(--text-primary) !important;
}

.footer-logo .accent {
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-secondary);
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

.contact-info li {
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top-color: var(--border-color);
    color: var(--text-tertiary);
}

.footer-bottom p {
    color: var(--text-tertiary);
}

.social-links a {
    background: rgba(129, 140, 248, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(129, 140, 248, 0.3);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(129, 140, 248, 0.4);
    border-color: transparent;
}

/* ============================================
   SPECIAL EFFECTS - DARK THEME
   ============================================ */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: block;
    max-width: fit-content;
    margin: 0 auto;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: rgba(129, 140, 248, 0.2);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(52, 211, 153, 0.2);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(251, 191, 36, 0.2);
    color: var(--warning-color);
}

/* ============================================
   HOVER EFFECTS & INTERACTIONS
   ============================================ */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.4);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.decorative-blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
    animation: morphing 20s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* ============================================
   GLOWING EFFECTS
   ============================================ */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.glow-on-hover:hover::before {
    opacity: 1;
}

/* ============================================
   MOBILE MENU - DARK THEME
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        background: linear-gradient(135deg, rgba(15, 12, 41, 0.98) 0%, rgba(48, 43, 99, 0.98) 100%);
        border-right: 1px solid rgba(129, 140, 248, 0.3);
        box-shadow: 2px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu .nav-link {
        color: var(--text-primary) !important;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover {
        background: linear-gradient(135deg, rgba(129, 140, 248, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
        color: var(--primary-color) !important;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
    }
    
    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
