/* Main CSS for Quant Market Insights Website */
:root {
    /* Color Palette */
    --primary-color: #0f172a;      /* Dark blue */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;       /* Light text for dark backgrounds */
    --text-secondary: #e2e8f0;
    --accent-color: #22c55e;       /* Green for positive indicators */
    --accent-color-hover: #16a34a; /* Darker green for hover states */
    --negative-color: #ef4444;     /* Red for negative indicators */
    --background-light: #f1f5f9;   /* Light background for cards */
    --border-color: rgba(148, 163, 184, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Roboto Slab', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-heading: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-code: 'JetBrains Mono', 'Courier New', monospace;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Anti-flickering styles - disable all animations and transitions */
* {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-transform: none !important;
    transform: none !important;
    opacity: 1 !important;
    -webkit-transform-style: flat !important;
    transform-style: flat !important;
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    will-change: auto !important;
}

/* Disable backdrop filters and other expensive effects */
.header, 
.hero-content,
.disclaimer-overlay,
.article-card,
.analysis-card,
.contact-direct,
.solution-card,
.newsletter-box,
.popup-overlay,
.disclaimer-popup,
.footer-links {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Show all reveal elements immediately */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Remove keyframe animations */
@keyframes fadeIn { from, to { opacity: 1; } }
@keyframes fadeOut { from, to { opacity: 1; } }
@keyframes slideIn { from, to { opacity: 1; transform: none; } }
@keyframes slideOut { from, to { opacity: 1; transform: none; } }
@keyframes pulse { from, to { transform: none; } }
@keyframes float { from, to { transform: none; } }

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--primary-color);
    background-image: url('../../pexels-maxfrancis-2246476.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: normal;
    position: relative;
    line-height: 1.6;
    animation: fadeIn 1.5s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: -1;
    animation: fadeIn 2s ease;
}

/* Remove all background patterns and particles */
.bg-pattern {
    display: none;
}

.particles {
    display: block;
    pointer-events: none;
}

/* Animated background pattern */
.bg-pattern {
    display: none;
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--accent-color);
    pointer-events: none;
    z-index: -1;
    animation: float 30s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(15px);
    }
    50% {
        transform: translateY(5px) translateX(-15px);
    }
    75% {
        transform: translateY(10px) translateX(10px);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Section titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), rgba(52, 211, 153, 0.5));
    border-radius: 2px;
    animation: scaleIn 1.2s ease-out, gradientFlow 8s ease infinite;
    background-size: 200% 200%;
}

/* Remove special styling for Featured Articles heading */
#articles .section-title {
    /* No special styling */
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-tool {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    background-color: var(--accent-color-hover);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    transform: translateY(-5px) scale(1.03);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    z-index: -1;
}

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

.btn-secondary:hover::before {
    width: 100%;
}

.btn-tool {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-tool:hover {
    background-color: var(--border-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 3rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.logo h1 {
    font-weight: 800;
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.logo .accent {
    color: var(--accent-color);
    position: relative;
}

.logo .accent::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    border-radius: 2px;
}

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

/* Ensure nav-links are visible on desktop */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.market-ticker {
    display: flex;
    gap: 1.5rem;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-mono);
    position: relative;
}

.ticker-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, transparent, rgba(34, 197, 94, 0.2), transparent);
    border-radius: 8px;
    z-index: -1;
    animation: tickerPulse 3s infinite alternate;
}

@keyframes tickerPulse {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.8;
    }
}

.ticker-symbol {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ticker-price {
    font-weight: 700;
    font-size: 1rem;
}

.ticker-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.positive {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

.negative {
    color: var(--negative-color);
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

/* Hero Section - restore to original */
.hero {
    padding: 6rem 5%;
    min-height: calc(100vh - 80px);
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.1) 0%, rgba(30, 41, 59, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    padding: 2.5rem;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out, gradientFlow 8s ease infinite;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-content h1 .accent {
    color: var(--accent-color);
    position: relative;
}

.hero-content h1 .accent::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: glow 3s ease-in-out infinite;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.2s ease-out, gradientFlow 8s ease infinite;
    transition: transform 0.5s ease;
}

.hero-content h2:hover {
    transform: translateY(-3px);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.4s ease-out, gradientFlow 8s ease infinite;
}

/* Hide all hero-graph elements */
.hero-graph, 
.graph-container, 
.placeholder-graph {
    display: none;
}

/* Featured Articles */
.featured-articles {
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.featured-articles::before {
    display: none;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.article-card {
    background-color: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, transparent 100%);
    z-index: -1;
    transition: opacity 0.5s ease;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.article-card:hover::before {
    opacity: 0.2;
}

/* Hide article image section */
.article-image {
    display: none;
}

.article-content {
    padding: 2rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.article-card:hover .article-tag {
    background-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-3px);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    line-height: 1.4;
    background: none;
    padding: 0;
    display: block;
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
    padding-bottom: 0.75rem;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--accent-color);
    position: relative;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.read-more:hover {
    letter-spacing: 0.5px;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* Professional Market Data Styling */
.market-data {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
    background-color: rgba(11, 17, 33, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(52, 211, 153, 0.2);
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
}

.market-data-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.market-chart {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.market-chart h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(52, 211, 153, 0.15);
    color: var(--text-primary);
    position: relative;
}

.market-chart h3:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.market-chart h3.mt-4 {
    margin-top: 2.5rem;
    font-size: 1.3rem;
}

/* Global Indices Styles */
.global-indices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border-left: 3px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.index-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: rgba(30, 41, 59, 0.75);
}

.index-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.index-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.index-name:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    margin-right: 0.75rem;
}

.index-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.index-change {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.change-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.change-year {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background-color: rgba(30, 41, 59, 0.7);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-weight: 500;
}

.positive .change-value {
    color: var(--accent-color);
}

.negative .change-value {
    color: var(--negative-color);
}

/* Currency Pairs Styles */
.currency-pairs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border-left: 3px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.currency-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: rgba(30, 41, 59, 0.75);
}

.currency-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.currency-name {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
}

.currency-value {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.currency-change {
    background-color: rgba(30, 41, 59, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
}

.currency-change.positive {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--accent-color);
}

.currency-change.negative {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--negative-color);
}

/* 10-Year Performance Styles */
.long-term-performance {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.performance-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.performance-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.performance-name:after {
    content: '10Y';
    font-size: 0.75rem;
    background-color: rgba(52, 211, 153, 0.2);
    color: var(--accent-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

.performance-bar {
    width: 100%;
    height: 38px;
    background-color: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.performance-value {
    height: 100%;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.7), rgba(34, 197, 94, 1));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.performance-value:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    z-index: -1;
}

/* Market Stats Styles */
.market-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

.stat-card h4 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    letter-spacing: 0.5px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(52, 211, 153, 0.15);
    color: var(--text-primary);
    position: relative;
}

.stat-card h4:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* Market Volatility Styles */
.volatility-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.volatility-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: rgba(30, 41, 59, 0.6);
    border-left: 3px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.volatility-item:hover {
    background-color: rgba(30, 41, 59, 0.8);
    transform: translateX(5px);
}

.volatility-name {
    font-weight: 600;
    font-size: 1rem;
}

.volatility-value {
    font-weight: 700;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
}

.volatility-value.positive {
    background-color: rgba(34, 197, 94, 0.2);
    color: var(--accent-color);
}

.volatility-value.negative {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--negative-color);
}

/* Sector List Styling */
.sector-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sector-list li {
    padding: 1rem 1.25rem;
    border-left: 3px solid;
    font-family: var(--font-mono);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.sector-list li:hover {
    background-color: rgba(30, 41, 59, 0.8);
    transform: translateX(5px);
}

.sector-list .positive {
    border-color: var(--accent-color);
    background-color: rgba(34, 197, 94, 0.1);
}

.sector-list .negative {
    border-color: var(--negative-color);
    background-color: rgba(239, 68, 68, 0.1);
}

/* Analysis Tools Section */
.analysis-tools {
    padding: 5rem 5%;
    background-color: rgba(15, 23, 42, 0.65);
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
    margin-top: 3rem;
}

@media (min-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.analysis-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 0 1.5rem 0;
    box-sizing: border-box;
}

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

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.3s ease;
}

.analysis-card:hover::before {
    height: 100%;
}

.analysis-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 211, 153, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.analysis-icon i {
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: all 0.5s ease;
}

.analysis-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.analysis-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.analysis-card .btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--accent-color);
    padding: 0.5rem 0;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.analysis-card .btn-tool:hover {
    border-bottom-color: var(--accent-color);
    transform: translateX(5px);
}

.analysis-card:hover .analysis-icon {
    transform: scale(1.15) rotate(5deg);
    background-color: rgba(52, 211, 153, 0.25);
}

.analysis-card:hover .analysis-icon i {
    transform: scale(1.2);
}

/* About Section */
.about {
    padding: 5rem 5%;
    position: relative;
    z-index: 1;
    background-color: transparent;
    width: 100%;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
    animation: fadeIn 1s ease-out;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-company {
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    width: 100%;
    animation: scaleIn 1s ease-out;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-company:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.about-company p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.research-areas {
    margin: 1.5rem 0 2rem 0;
    text-align: left;
    padding-left: 0;
}

.research-areas li {
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    animation: slideInRight 0.5s ease-out;
    animation-fill-mode: both;
    text-align: left;
    list-style-type: none;
}

.research-areas li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.research-areas li:hover::before {
    transform: scale(1.5);
    background-color: var(--accent-color-hover);
}

.research-areas li strong {
    color: var(--text-primary);
    font-weight: 700;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
}

.about-profile {
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.profile-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 250px;
}

.profile-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-details h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-details h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.profile-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.profile-credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credential i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Container for section titles to center them */
.featured-articles, .market-data, .analysis-tools, .about, .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Utility classes */
.mt-4 {
    margin-top: 2rem;
}

/* Contact Section Styling */
.contact {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
    background-color: rgba(15, 23, 42, 0.75);
    border-top: 1px solid rgba(52, 211, 153, 0.2);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(52, 211, 153, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(34, 211, 238, 0.08) 0%, transparent 30%);
    z-index: -1;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    background-color: rgba(15, 23, 42, 0.75);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: scaleIn 1s ease-out;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.6;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 350px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 211, 153, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background-color: var(--accent-color);
    color: #0f172a;
    box-shadow: 0 5px 15px rgba(52, 211, 153, 0.3);
}

.contact-item span {
    color: var(--text-secondary);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
    color: #0f172a;
    box-shadow: 0 5px 15px rgba(52, 211, 153, 0.3);
}

.contact-form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.contact-form button {
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--button-text);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25);
}

.contact-form button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.5);
}

/* Newsletter Section Styling */
.newsletter {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
    background-color: rgba(15, 23, 42, 0.3);
    border-top: 1px solid rgba(52, 211, 153, 0.1);
    border-bottom: 1px solid rgba(52, 211, 153, 0.1);
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 80% 30%, rgba(52, 211, 153, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 20% 70%, rgba(34, 211, 238, 0.08) 0%, transparent 30%);
    z-index: -1;
}

.newsletter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    padding: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: scaleIn 1s ease-out;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.newsletter-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.6;
}

.newsletter-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.newsletter-content {
    flex: 1;
    padding-right: 2rem;
    text-align: center;
}

.newsletter-content::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, rgba(52, 211, 153, 0.3), transparent);
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.newsletter-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.newsletter-form input[type="email"] {
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-form button {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-size: 1rem;
    background-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25);
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.5);
}

/* Newsletter features styling */
.newsletter-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.newsletter-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.newsletter-features .feature:hover {
    transform: translateY(-3px);
    color: var(--text-primary);
}

.newsletter-features .feature i {
    color: var(--accent-color);
    font-size: 1.25rem;
    background-color: rgba(34, 197, 94, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.newsletter-features .feature:hover i {
    background-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* Footer Styling */
.footer {
    background-color: rgba(15, 23, 42, 0.95);
    padding: 4rem 5% 1rem;
    border-top: 1px solid rgba(52, 211, 153, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(52, 211, 153, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(34, 211, 238, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.footer-logo h2 .accent {
    background: linear-gradient(135deg, var(--accent-color), #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    max-width: 300px;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 140px;
}

.footer-column h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Success message styling */
.form-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.form-note.success {
    color: #22c55e;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Remove the Team Section Styling */
.team, .team-content, .team-container, .team-profile, .profile-image, .profile-photo, .photo-placeholder, .profile-details, .profile-title, .profile-bio, .profile-credentials, .credential {
    display: none;
}

/* Hide stock ticker components */
.stock-ticker-container, #stock-ticker, .news-item, .news-source, .news-headline {
    display: none;
}

@keyframes tickerScroll {
    /* Empty keyframes to override the existing ones */
}

/* Advanced Animations for Professional Look */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease-out infinite alternate;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-text {
    color: var(--text-primary);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow i {
    color: var(--accent-color);
    font-size: 12px;
    animation: fadeInUp 1s ease-out infinite alternate;
}

/* Section reveal animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Add this class to section elements with JavaScript */
.blur-in {
    filter: blur(5px);
    opacity: 0;
    transition: all 1s ease;
}

.blur-in.active {
    filter: blur(0);
    opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none !important;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media only screen and (max-width: 768px) {
    /* Fix horizontal overflow issues */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* Section Layout Fixes for Mobile */
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Featured Articles Container */
    .featured-articles {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    /* Articles Container */
    .articles-container {
        display: block;
        width: 100%;
    }
    
    /* Analysis Tools Container */
    .analysis-tools {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    /* About Section Container */
    .about {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    /* Footer Container */
    .footer {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Container fixes to prevent overflow */
    .articles-container, 
    .tools-grid,
    .about-content,
    .newsletter-container,
    .contact-container,
    .footer-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Card sizing fixes */
    .article-card, 
    .analysis-card {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Existing styles */
    .menu-toggle {
        display: block !important;
        position: absolute;
        top: 1.3rem;
        right: 1.5rem;
        z-index: 999;
    }
    
    nav {
        width: 100%;
    }
    
    nav.mobile-nav-open {
        display: block;
    }
    
    nav:not(.mobile-nav-open) .nav-links {
        display: none;
    }
    
    /* Mobile Navigation */
    html {
        font-size: 14px;
    }
    
    /* Header & Navigation */
    .header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    /* Articles Section */
    .articles-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        margin-bottom: 1.5rem;
    }
    
    /* Tools/Analysis Section */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .analysis-card {
        padding: 1.5rem;
    }
    
    /* Market Data Section */
    .market-data-container {
        flex-direction: column;
    }
    
    .market-chart {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .global-indices, 
    .currency-pairs {
        width: 100%;
    }
    
    /* Contact Section */
    .contact-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .contact-info {
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        width: 100%;
    }
    
    .contact-form input,
    .contact-form textarea,
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Newsletter Section */
    .newsletter-container {
        flex-direction: column;
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .newsletter-content, 
    .newsletter-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .newsletter-content {
        margin-bottom: 1.5rem;
    }
    
    .newsletter-features {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 1rem 0;
    }
    
    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.8rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo,
    .footer-links {
        width: 100%;
    }
    
    .footer-logo {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Disclaimer Popup */
    .disclaimer-popup {
        width: 95%;
        padding: 1.5rem;
    }
    
    .disclaimer-content {
        max-height: 250px;
    }
}

/* Small Mobile Devices */
@media only screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-form input,
    .contact-form textarea,
    .newsletter-form input[type="email"] {
        padding: 0.75rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* iPhone mini specific fixes (iPhone 12 mini, 13 mini, SE 2020) */
@media only screen and (max-width: 375px) and (max-height: 812px) {
    /* Footer optimizations for iPhone mini */
    .footer {
        padding: 2.5rem 0.5rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .footer-logo {
        width: 100%;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-logo h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0 auto;
        max-width: 270px;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .footer-column {
        margin: 0;
        width: 45%;
        padding: 0;
    }
    
    .footer-column h3 {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
        text-align: center;
    }
    
    .footer-column ul {
        text-align: center;
        padding: 0;
    }
    
    .footer-column ul li {
        margin-bottom: 0.6rem;
    }
    
    .footer-column ul li a {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding: 0.8rem 0;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
}