/* Basic Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Add smooth scrolling */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a; /* Default Dark background color */
    color: #ffffff; /* Default White text color */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for theme change */
}

/* Light Mode Styles */
body.light-mode {
    background-color: #f4f4f4; /* Light background */
    color: #333333; /* Dark text color */
}

body.light-mode .site-header {
     background-color: rgba(244, 244, 244, 0.9); /* Lighter header with slight transparency */
}

body.light-mode .logo {
    color: #333333;
}

body.light-mode .main-nav a {
    color: #333333;
}

body.light-mode .main-nav a:hover,
body.light-mode .main-nav a.active {
     background-color: #333333;
     color: #ffc107;
}


body.light-mode .btn {
    background-color: #333333;
    color: #ffc107;
}

body.light-mode .btn:hover {
    background-color: #555555;
    color: #ffda6a;
}

body.light-mode .hero-text h1 {
     color: #333333;
}

body.light-mode .hero-text .highlight {
    color: #007bff; /* Example highlight color for light mode */
}

body.light-mode .hero-text p {
     color: #555555;
}


body.light-mode .testimonial-section,
body.light-mode .tools-section,
body.light-mode .call-to-action-section {
    background-color: #e0e0e0; /* Lighter background for sections */
}

body.light-mode .testimonial-quote h2,
body.light-mode .testimonial-info h3,
body.light-mode .about-section h2,
body.light-mode .results-section h2,
body.light-mode .tools-section h2,
body.light-mode .difference-section h2,
body.light-mode .call-to-action-section h2 {
    color: #333333;
}

body.light-mode .testimonial-info p,
body.light-mode .testimonial-info li,
body.light-mode .quote-attribution,
body.light-mode .about-text p,
body.light-mode .metric-label,
body.light-mode .tool-item p,
body.light-mode .call-to-action-section p {
    color: #555555;
}

body.light-mode .testimonial-info li::before {
    color: #007bff; /* Example checkmark color for light mode */
}

body.light-mode .metric-number {
    color: #007bff; /* Example metric number color for light mode */
}


body.light-mode .trading-card {
     background-color: #cccccc; /* Lighter card background */
}

body.light-mode .trading-card img {
    opacity: 1; /* Full opacity for images in light mode */
}

body.light-mode .card-overlay {
    background: linear-gradient(to top, rgba(204,204,204,0.7) 0%, rgba(204,204,204,0) 50%); /* Adjust overlay gradient */
    color: #333333; /* Dark text on card overlay */
}
body.light-mode .card-overlay p {
     color: #333333; /* Dark text on card overlay */
     z-index: 2; /* Ensure text is above overlay */
}

body.light-mode .card-overlay .pair,
body.light-mode .card-overlay .details,
body.light-mode .card-overlay .platform {
    color: #555555; /* Slightly lighter dark text for details */
}

body.light-mode .tool-item {
     background-color: #cccccc; /* Lighter tool item background */
}

body.light-mode .tool-icon {
    color: #007bff; /* Example icon color for light mode */
}

body.light-mode .tool-item h3 {
    color: #333333;
}


body.light-mode footer {
     background-color: #bbbbbb; /* Lighter footer */
     color: #333333;
}


/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add some padding on smaller screens */
}

/* Header Styling */
.site-header {
    background-color: rgba(26, 26, 26, 0.9); /* Darker background with slight transparency */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header stays on top */
    backdrop-filter: blur(5px); /* Optional: Add blur effect */
}

.header-content {
    display: flex;
    justify-content: space-between; /* Push logo to one side, nav and actions to the other */
    align-items: center;
    flex-wrap: wrap; /* Allow header content to wrap on smaller screens */
    gap: 20px; /* Add gap between flex items */
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    flex-shrink: 0; /* Prevents shrinking */
}

.main-nav {
    flex-grow: 1; /* Allows nav to grow and take space */
    flex-shrink: 0; /* Prevents shrinking below content size */
    display: flex;
    justify-content: center; /* Center the navigation links */
}

.main-nav ul {
    list-style: none;
    display: flex; /* Arrange list items horizontally */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    flex-wrap: wrap; /* Allow nav links to wrap */
    justify-content: center; /* Center links if they wrap */
}

.main-nav ul li {
    margin: 0 10px; /* Space between navigation items */
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 8px; /* Add padding for clickable area */
    border-radius: 4px; /* Optional: slight rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #ffc107; /* Yellow background on hover/active */
    color: #1a1a1a; /* Dark text on hover/active */
}


/* Header Actions (Language Switcher & Theme Toggle & Button) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between items in header actions */
    flex-shrink: 0; /* Prevents shrinking */
}

/* Dropdown Styling (Language Switcher) */
.dropdown {
    position: relative; /* Needed for absolute positioning of the menu */
    display: inline-block; /* Allows dropdown to sit next to other elements */
}

.dropdown-toggle {
    background-color: transparent;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slight background on hover */
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the toggle button */
    left: 0; /* Align to the left of the toggle button */
    background-color: #282828; /* Dark background for dropdown menu */
    list-style: none;
    padding: 10px 0;
    margin: 5px 0 0 0;
    border-radius: 4px;
    min-width: 120px; /* Minimum width for the dropdown */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Ensure it's above other content */
}

.dropdown-menu li a {
    display: block; /* Make the whole area clickable */
    padding: 8px 15px;
    color: #ffffff; /* White text for dropdown links */
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: normal; /* Reset font weight */
}

.dropdown-menu li a:hover {
    background-color: #3a3a3a; /* Darker background on hover */
}

.dropdown.show .dropdown-menu {
    display: block; /* Show the menu when the 'show' class is present */
}

/* Theme Toggle Button Styling */
.theme-toggle {
    background-color: transparent;
    color: #ffc107; /* Yellow color for the icon */
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: #ffffff; /* White color on hover */
}


/* Button Styling */
.btn {
    display: inline-block;
    background-color: #ffc107; /* Yellow button color */
    color: #1a1a1a; /* Dark text on button */
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ffda6a; /* Lighter yellow on hover */
}

/* Hero Section Styling */
.hero-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Match header background */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px; /* Space between text and image */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-text {
    flex: 1; /* Take up available space */
    min-width: 300px; /* Ensure text doesn't get too small */
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text .highlight {
    color: #ffc107; /* Yellow for highlight */
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #cccccc; /* Lighter text color */
}

.hero-image {
    flex: 1; /* Take up available space */
    min-width: 300px; /* Ensure image doesn't get too small */
    text-align: center; /* Center image if smaller than container */
}

.hero-image img {
    max-width: 100%; /* Ensure image is responsive */
    height: auto;
    display: block; /* Added to prevent extra space below image */
    margin: 0 auto; /* Center the image within its container */
}

/* Testimonial Section Styling */
.testimonial-section {
    background-color: #282828; /* Slightly lighter dark background */
    padding: 80px 0;
}

.testimonial-content {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Align items to the top */
    flex-wrap: wrap;
}

.testimonial-quote {
    flex: 1;
    min-width: 300px;
}

.testimonial-quote h2 {
    font-size: 2.5em;
    line-height: 1.3;
}

.testimonial-info {
    flex: 1;
    min-width: 300px;
}

.testimonial-info h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.testimonial-info ul {
    list-style: none;
    margin-bottom: 30px;
    padding: 0; /* Remove default list padding */
}

.testimonial-info li {
    margin-bottom: 10px;
    color: #cccccc;
    position: relative; /* Needed for custom bullet point */
    padding-left: 20px; /* Make space for custom bullet */
}

/* Style for custom checkmark bullet */
.testimonial-info li::before {
    content: "\2713"; /* Unicode checkmark */
    color: #ffc107; /* Yellow color */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}


/* About Section Styling (New) */
.about-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    text-align: center; /* Center heading */
}

.about-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
}

.about-text {
    flex: 2; /* Allow text to take more space */
    min-width: 300px;
    text-align: left; /* Align text within its container */
}

.about-text p {
    margin-bottom: 20px;
    color: #cccccc;
}

.about-metrics {
    display: flex;
    justify-content: space-around; /* Distribute metrics horizontally */
    margin-top: 30px;
    flex-wrap: wrap; /* Allow metrics to wrap */
    gap: 20px; /* Space between metrics */
}

.metric-item {
    text-align: center;
}

.metric-number {
    font-size: 2em;
    font-weight: bold;
    color: #ffc107; /* Yellow color */
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9em;
    color: #cccccc;
}


/* Results Section Styling */
.results-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    text-align: center; /* Center headings and photo */
}

.results-section h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.results-section .highlight {
     color: #ffc107; /* Yellow for highlight */
}

.quote-attribution {
    font-style: italic;
    margin-bottom: 40px;
    color: #cccccc;
}


.trading-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between cards */
    padding: 0 10px; /* Add slight padding to prevent cards touching edges on small screens */
}

.trading-card {
    position: relative; /* Needed for absolute positioning of overlay */
    background-color: #282828; /* Card background */
    border-radius: 10px;
    overflow: hidden; /* Hide parts of overlay outside the card */
    text-align: left;
    display: flex; /* Use flex to arrange content inside card */
    flex-direction: column; /* Stack content vertically */
}

.trading-card img {
    display: block;
    width: 100%;
    height: auto;
    /* object-fit: cover; */ /* Optional: uncomment if you want images to cover the area without distortion */
    opacity: 0.8; /* Slightly dim the background image */
}

body.light-mode .trading-card img {
     opacity: 1; /* Full opacity for images in light mode */
}


.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align text to the bottom */
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%); /* Gradient overlay */
    z-index: 1; /* Ensure overlay is above the image */
}

.card-overlay p {
    margin-bottom: 5px;
    z-index: 2; /* Ensure text is above the overlay background */
}

.card-overlay .pair {
    font-size: 1em;
    font-weight: 600;
    color: #cccccc;
}

.card-overlay .gain {
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50; /* Green color for gain */
}

.card-overlay .details {
    font-size: 0.9em;
    color: #cccccc;
}

.card-overlay .platform {
    font-size: 0.8em;
    color: #aaaaaa;
    margin-top: 10px;
}


/* Tools Section Styling (New) */
.tools-section {
    padding: 80px 0;
    background-color: #282828; /* Slightly lighter dark background */
    text-align: center; /* Center heading */
}

.tools-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid for tools */
    gap: 30px; /* Space between tool items */
}

.tool-item {
    text-align: center;
    background-color: #1a1a1a; /* Dark background for tool item */
    padding: 30px 20px;
    border-radius: 10px;
}

.tool-icon {
    font-size: 3em;
    color: #ffc107; /* Yellow color for icons */
    margin-bottom: 15px;
}

body.light-mode .tool-icon {
     color: #007bff; /* Example icon color for light mode */
}


.tool-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.tool-item p {
    font-size: 0.9em;
    color: #cccccc;
}

/* Difference Section Styling */
.difference-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
    text-align: center;
}

.difference-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* --- Add content for the difference section here --- */
.difference-section .container {
    /* Add styles for the content you put inside this container */
}


/* Call To Action Section Styling (New) */
.call-to-action-section {
    padding: 80px 0;
    background-color: #282828; /* Slightly lighter dark background */
    text-align: center; /* Center content */
}

.call-to-action-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.call-to-action-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #cccccc;
}

.cta-btn {
    /* Inherits .btn styling */
}


/* Footer Styling (Example) */
footer {
    background-color: #111;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    /* Adjustments for tablets and smaller desktops */
     .header-content {
         gap: 10px; /* Reduce gap */
     }

     .main-nav ul li {
         margin: 0 8px; /* Reduce margin between nav items */
     }

     .hero-section,
     .testimonial-section,
     .about-section,
     .results-section,
     .tools-section,
     .difference-section,
     .call-to-action-section,
     footer {
         padding: 60px 0; /* Adjust section padding */
     }

      .hero-text h1 {
          font-size: 2.5em; /* Adjust font size */
      }

       .testimonial-quote h2 {
           font-size: 2em; /* Adjust font size */
       }

       .results-section h2,
       .tools-section h2,
       .difference-section h2,
       .call-to-action-section h2 {
           font-size: 2em; /* Adjust font size */
       }

        .hero-text p,
        .testimonial-info h3,
        .call-to-action-section p {
            font-size: 1.1em; /* Adjust font size */
        }

        .about-text p {
             font-size: 1em; /* Adjust font size */
        }

}


@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    /* Adjust header actions layout on smaller screens */
    .header-actions {
        flex-direction: column-reverse; /* Put language switcher above the button */
        gap: 10px; /* Reduce gap */
        width: 100%; /* Allow actions to take full width */
        align-items: center; /* Center items vertically in column */
    }

     .main-nav {
         width: 100%; /* Allow nav to take full width */
         justify-content: center; /* Center nav links */
         margin-bottom: 15px; /* Space below nav */
     }

    .main-nav ul {
        flex-direction: column; /* Stack nav items vertically on small screens */
        align-items: center; /* Center stacked items */
    }

    .main-nav ul li {
        margin: 5px 0; /* Adjust margin for stacked items */
    }

    .hero-content,
    .testimonial-content,
    .about-content { /* Also apply to about content */
        flex-direction: column;
        text-align: center;
    }

    .hero-text,
    .hero-image,
    .testimonial-quote,
    .testimonial-info,
    .about-text { /* Also apply to about text */
        min-width: unset; /* Remove minimum width constraint on smaller screens */
        width: 100%;
        text-align: center; /* Center text on smaller screens */
    }

     .samuel-photo img {
         max-width: 150px; /* Make photo smaller on mobile */
     }

     .about-metrics {
         justify-content: center; /* Center metrics on smaller screens */
         flex-direction: column; /* Stack metrics vertically */
         gap: 10px; /* Reduce gap between stacked metrics */
     }

    .metric-item {
        margin-bottom: 10px; /* Space between stacked metric items */
    }


     .trading-cards-grid {
         padding: 0; /* Remove padding on very small screens if needed */
     }

     .trading-card {
         padding: 15px; /* Reduce card padding on small screens */
     }

     .card-overlay {
         padding: 15px; /* Match overlay padding */
     }

      .hero-text h1 {
          font-size: 1.8em; /* Further reduce font size */
      }

       .testimonial-quote h2 {
           font-size: 1.5em; /* Further reduce font size */
       }

       .results-section h2,
       .tools-section h2,
       .difference-section h2,
       .call-to-action-section h2 {
           font-size: 1.8em; /* Adjust font size */
       }

        .hero-text p,
        .testimonial-info h3,
        .call-to-action-section p {
            font-size: 1em; /* Adjust font size */
        }

        .about-text p {
             font-size: 0.9em; /* Adjust font size */
        }


       .tools-grid {
           gap: 15px; /* Adjust tool grid gap */
       }

       .tool-item {
           padding: 20px; /* Reduce padding */
       }

        .tool-icon {
            font-size: 2.5em; /* Adjust icon size */
        }
}

/* Specific adjustments for RTL in Farsi */
html[direction="rtl"] .hero-text,
html[direction="rtl"] .about-text,
html[direction="rtl"] .testimonial-info,
html[direction="rtl"] .testimonial-quote {
    text-align: right; /* Ensure text alignment is correct for RTL */
}

html[direction="rtl"] .testimonial-info li {
    padding-left: 0;
    padding-right: 20px; /* Adjust padding for RTL checklist */
}

html[direction="rtl"] .testimonial-info li::before {
     left: unset;
     right: 0; /* Position the checkmark on the right for RTL */
}

html[direction="rtl"] .samuel-photo img {
    margin-left: auto; /* Center image in RTL */
    margin-right: auto; /* Center image in RTL */
}

html[direction="rtl"] .about-metrics {
    justify-content: center; /* Center metrics in RTL */
}

html[direction="rtl"] .about-text {
    text-align: right; /* Ensure about text is right-aligned in RTL */
}

/* Adjust RTL layout for tool items if needed */
html[direction="rtl"] .tools-grid .tool-item {
    /* Add RTL specific styles if needed */
}
