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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--primary-color);
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Color Palette */
:root {
    --primary-color: #141414; /* Dark background */
    --secondary-color: #00BFFF; /* Highlight blue */
    --text-light: #f9f9f9; /* Light text */
    --text-muted: #999; /* Muted text */
    --dark-gray: #1e1e1e; /* Card background */
    --accent-hover: #00BFFF; /* Hover effect */
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: center; /* Ensure content stays in the center */
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.header .logo img {
    width: 50px;
    height: 50px;
    margin-right: 20px; /* Add spacing between logo and nav */
}

.header nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header nav ul li {
    position: relative;
}

.header nav ul li a {
    color: var(--text-light);
    font-weight: bold;
    padding: 8px 12px;
    transition: background 0.3s;
}

.header nav ul li a:hover {
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.header nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-gray);
    padding: 10px 0;
    display: none;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}

.header nav ul li:hover .dropdown {
    display: block;
}

.header nav ul li .dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    white-space: nowrap;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 0.9)), url('assets/images/hero-banner.jpg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 5rem 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
}

.hero-stats .stat h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.hero-stats .stat p {
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

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

/* Features Section */
.features {
    padding: 4rem 1rem;
    background-color: var(--primary-color);
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature {
    background: var(--dark-gray);
    border-radius: 8px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Live Market Updates Section */
.live-market {
    background-color: var(--primary-color);
    padding: 4rem 1rem;
    text-align: center;
}

.live-market .section-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.live-market .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.market-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.market-table {
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 2rem;
    width: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.market-table:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.8);
}

.table-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--dark-gray);
    color: var(--secondary-color);
}

thead th {
    padding: 10px 0;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

tbody tr {
    text-align: center;
    border-bottom: 1px solid #333;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 10px 0;
    color: var(--text-light);
}

tbody td.positive {
    color: #4caf50; /* Green for positive change */
}

tbody td.negative {
    color: #f44336; /* Red for negative change */
}

/* Leaderboard Section */
.leaderboard {
    padding: 4rem 1rem;
    text-align: center;
    background-color: var(--primary-color);
}

.leaderboard .section-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.leaderboard .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.leaderboard-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.leaderboard-item {
    background-color: var(--dark-gray);
    padding: 1.5rem 2rem;
    width: 300px; /* Adjust width for horizontal layout */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    text-align: center;
}

.leaderboard-item h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.leaderboard-item p {
    font-size: 1.2rem;
}

/* Responsive Design */
@media screen and (max-width: 1500px) {
    .leaderboard {
        display: none; /* Hides the leaderboard on smaller screens */
    }
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--text-light);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-info img {
    width: 50px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--secondary-color);
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-media a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 10px;
}
