/* =========================================
   MT4 EXPERT ADVISORS PORTFOLIO - MAIN CSS
   ========================================= */

/* CSS Variables */
:root {
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-secondary: #0f172a;
    --color-secondary-light: #1e293b;
    --color-text: #0f172a;
    --color-text-light: #475569;
    --color-text-lighter: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition-base: 0.3s ease;
    --transition-fast: 0.15s ease;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Section */
.section {
    padding: 80px 0;
}

.section-dark {
    background: var(--color-secondary);
    color: #ffffff;
}

.section-alt {
    background: var(--color-bg-alt);
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: #cbd5e1;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo-link {
    text-decoration: none;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-base);
}

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

.nav-link-cta {
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-fast);
}

.nav-link-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 77px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    color: white;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--color-primary);
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title-highlight {
    display: block;
    color: var(--color-primary);
    margin-top: 8px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(16px);
        opacity: 0;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
}

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

.btn-secondary {
    background: white;
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== EA PORTFOLIO ===== */
.ea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.ea-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid var(--color-border);
    transition: var(--transition-base);
    position: relative;
}

.ea-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.ea-card-coming {
    opacity: 0.7;
}

.ea-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ea-badge-soon {
    background: var(--color-text-lighter);
    color: white;
}

.ea-icon {
    margin-bottom: 20px;
}

.ea-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.ea-category {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-weight: 600;
}

.ea-description {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.ea-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ea-features-mini span {
    font-size: 13px;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    padding: 6px 12px;
    border-radius: 6px;
}

.ea-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.stat-mini {
    text-align: center;
}

.stat-mini-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.stat-mini-label {
    font-size: 11px;
    color: var(--color-text-lighter);
    font-weight: 600;
}

.ea-pricing {
    margin-bottom: 20px;
}

.ea-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.price-from {
    font-size: 12px;
    color: var(--color-text-light);
}

.price-amount {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-secondary);
}

.price-period {
    font-size: 14px;
    color: var(--color-text-light);
}

.ea-price-alt {
    font-size: 13px;
    color: var(--color-text-light);
}

.ea-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coming-soon-features {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.coming-soon-features p {
    margin: 8px 0;
    color: var(--color-text-light);
    font-size: 14px;
}

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
}

.why-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.why-card p {
    color: #cbd5e1;
    line-height: 1.7;
}

/* ===== PERFORMANCE ===== */
.performance-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.perf-highlight {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--color-border);
    transition: var(--transition-base);
}

.perf-highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.perf-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.perf-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.perf-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.perf-note {
    font-size: 13px;
    color: var(--color-text-light);
}

.performance-cta {
    text-align: center;
}

.performance-cta p {
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: 18px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
}

.contact-text {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: start;
}

.method-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-method p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--color-border);
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-logo {
    height: 55px;
    margin-bottom: 20px;
}

.footer-text {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 14px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

/* ===== ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transition: var(--transition-base);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .ea-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .ea-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-highlights {
        grid-template-columns: 1fr;
    }
}
