/* General Styles */
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #7209b7;
    --accent: #4cc9f0;
    --accent-dark: #00b4d8;
    --secondary: #f72585;
    --dark: #0f172a;
    --light: #ffffff;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Theme colors */
    --bg-body: var(--gray-100);
    --bg-card: white;
    --bg-accent: var(--gray-100);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-muted: var(--gray-500);
    --border-color: var(--gray-200);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

/* Dark mode theme */
:root.dark-theme {
    --bg-body: #0f1729;
    --bg-card: #1a2234;
    --bg-accent: #1d293f;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --border-color: #2d3748;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --navbar-bg: rgba(15, 23, 42, 0.95);
}

/* Global styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-body);
    padding-top: 76px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col-md-6 {
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.dark-theme .navbar {
    background-color: rgba(15, 23, 42, 0.98);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: var(--navbar-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

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

.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 15px rgba(67, 97, 238, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(67, 97, 238, 0.4);
}

/* FXolio Logo */
.fxolio-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fxolio-logo-main {
    display: flex;
    align-items: center;
}

.fxolio-logo-icon {
    background: linear-gradient(to bottom right, #4f46e5, #3b82f6);
    color: white;
    font-weight: bold;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.fxolio-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.dark-theme .fxolio-logo-text {
    background: linear-gradient(to right, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fxolio-logo-subtitle {
    font-size: 0.7rem;
    color: rgba(59, 130, 246, 0.8);
    margin-top: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.dark-theme .fxolio-logo-subtitle {
    color: rgba(147, 197, 253, 0.7);
}

/* Mobile controls */
.navbar-mobile-controls {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 100;
    outline: none;
}

.menu-bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Footer Styles */
.footer {
    background-color: var(--dark);
    color: var(--text-muted);
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.footer-top {
    margin-bottom: 3rem;
}

.footer h3 {
    color: var(--light);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 10px;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--light);
    transform: translateX(8px);
}

.footer-icon {
    color: var(--primary-light);
    margin-right: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    max-width: 90%;
    color: var(--gray-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-email-link {
    color: white !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.footer-email-link:hover {
    color: #4cc9f0 !important;
    text-decoration: none !important;
}

/* Blog-specific styles */
.blog-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f4f5ff 0%, #e9f0ff 100%);
    margin-bottom: 2rem;
}

.dark-theme .blog-header {
    background: linear-gradient(135deg, #0f1729 0%, #151d3b 100%);
}

.blog-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #4361ee, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-description {
    max-width: 800px;
    margin: 0 auto;
    color: #64748B;
}

.cluster-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.topic-cluster {
    margin-bottom: 4rem;
}

.cluster-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1E293B;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 0.5rem;
}

.dark-theme .cluster-title {
    color: #F1F5F9;
    border-bottom-color: #2d3748;
}

.cluster-description {
    margin-bottom: 2rem;
    color: #64748B;
}

.dark-theme .cluster-description {
    color: #94A3B8;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 0.9rem;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1E293B;
}

.article-excerpt {
    color: #64748B;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    font-size: 0.875rem;
    color: #94A3B8;
    display: flex;
    justify-content: space-between;
}

.article-date {
    display: flex;
    align-items: center;
}

.article-date i {
    margin-right: 0.5rem;
}

.article-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-published {
    background-color: #DCFCE7;
    color: #166534;
}

.status-coming-soon {
    background-color: #E0F2FE;
    color: #0369A1;
}

.dark-theme .article-card {
    background: #1a2234;
}

.dark-theme .article-title {
    color: #F1F5F9;
}

.dark-theme .article-excerpt {
    color: #CBD5E1;
}

.dark-theme .article-meta {
    color: #94A3B8;
}

.dark-theme .article-image {
    background-color: #1d293f;
    color: #94A3B8;
}

.dark-theme .status-published {
    background-color: rgba(22, 101, 52, 0.2);
    color: #86EFAC;
}

.dark-theme .status-coming-soon {
    background-color: rgba(3, 105, 161, 0.2);
    color: #7DD3FC;
}

/* Font Awesome Icons */
.fas {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fa-calendar:before {
    content: "\f133";
}

.fa-check-circle:before {
    content: "\f058";
}

.fa-rocket:before {
    content: "\f135";
}

.fa-sun:before {
    content: "\f185";
}

.fa-moon:before {
    content: "\f186";
}

/* Theme toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background-color: var(--bg-accent);
    transform: translateY(-3px) scale(1.1);
    color: var(--primary);
}

.theme-toggle .fa-sun {
    display: none;
    color: #F59E0B;
    animation: pulse 2s infinite;
}

.theme-toggle .fa-moon {
    display: block;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.dark-theme .theme-toggle .fa-sun {
    display: block;
}

.dark-theme .theme-toggle .fa-moon {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-mobile-controls {
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        padding: 5rem 2rem;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 2rem;
        z-index: 99;
    }
    
    .dark-theme .navbar-nav {
        background-color: var(--bg-card);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .menu-open .navbar-nav {
        right: 0;
    }
    
    .nav-item:last-child {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .cluster-container {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .cluster-title {
        font-size: 1.5rem;
    }
} 