/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a2526;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

body.light-theme {
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: #3ce71a;
    transition: color 0.3s;
}

a:hover {
    color: #ffc040;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #3ce71a;
    color: #000;
}

.btn-primary:hover {
    background-color: #ffbb33;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 170, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #0a0f0f;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a.active {
  font-weight: bold;
  color: #3ce71a;
  text-decoration: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3ce71a;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #3ce71a;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-switcher {
    width: 40px;
    height: 20px;
    background-color: #333;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.theme-switcher::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

#theme-toggle:checked + .theme-switcher::before {
    transform: translateX(20px);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.rating-stars {
    color: #3ce71a;
    font-size: 1.2rem;
}

/* Features Section */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #3ce71a;
    bottom: -10px;
    left: 25%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #222f30;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #3ce71a;
    margin-bottom: 1.5rem;
}

/* Trading Instruments */
.instruments {
    background-color: #222f30;
}

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.instrument-card {
    background-color: #2a3738;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.instrument-card:hover {
    transform: scale(1.05);
}

.instrument-img {
    height: 150px;
    overflow: hidden;
}

.instrument-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.instrument-card:hover .instrument-img img {
    transform: scale(1.1);
}

.instrument-info {
    padding: 1.5rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #2a3738;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: rgba(255, 170, 0, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.3rem;
}

.author-info p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: #222f30;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

.blog-title {
    margin-bottom: 1rem;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
    color: #ccc;
}

/* Community */
.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: #2a3738;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3ce71a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #ccc;
}

.forum-posts {
    background-color: #222f30;
    padding: 3rem 0;
}

.post-card {
    background-color: #2a3738;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.post-title {
    margin-bottom: 1rem;
}

.post-excerpt {
    margin-bottom: 1rem;
    color: #ccc;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #ccc;
}

/* Trading Platform */
.platform-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.platform-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.platform-img img {
    width: 100%;
    height: auto;
    display: block;
}

.platform-content {
    flex: 1;
}

.platform-features {
    margin-top: 2rem;
}

.platform-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.platform-feature i {
    font-size: 1.5rem;
    color: #3ce71a;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

/* About Page */
.about-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 5rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-mission {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.about-mission img {
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mission-content {
    flex: 1;
}

.team-section {
    background-color: #222f30;
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: #2a3738;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 250px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-social a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.team-social a:hover {
    color: #3ce71a;
}

/* Affiliate Program */
.program-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background-color: #2a3738;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #3ce71a;
    margin-bottom: 1rem;
}

.commission-structure {
    background-color: #222f30;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.commission-table th, .commission-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #3a4748;
}

.commission-table th {
    background-color: #3a4748;
    color: #3ce71a;
}

.commission-table tr:hover {
    background-color: #3a4748;
}

/* Terms & Privacy */
.legal-content {
    background-color: #222f30;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h3 {
    color: #3ce71a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #3a4748;
}

/* Footer */
.footer {
    background-color: #0a0f0f;
    padding: 4rem 0 2rem;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
}

.footer-about p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #3ce71a;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #3ce71a;
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3ce71a;
}

.footer-newsletter p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #2a3738;
    color: #fff;
}

.newsletter-form button {
    padding: 0 1.5rem;
    background-color: #3ce71a;
    color: #000;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a3738;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .platform-section {
        flex-direction: column;
    }
    
    .about-mission {
        flex-direction: column;
    }
    
    .platform-img, .about-mission img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #0a0f0f;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        display: block;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form button {
        border-radius: 5px;
        padding: 0.7rem;
    }
}
