/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #241B42; /* Updated background color */
    color: #fff; /* White text for better contrast */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin: 0 0 20px;
}

.container {
    width: 90%; /* Increased width for better mobile fit */
    max-width: 1200px; /* Maximum width for large screens */
    margin: 0 auto;
    overflow: hidden;
}

header {
    background: transparent; /* Transparent to show background color */
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header img {
    width: 150px; /* Larger logo */
}

header h1 {
    margin-top: 10px;
    font-size: 2.5em; /* Larger font size */
}

a {
    color: #ff4500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation Styles */
nav {
    background: #2e2e2e; /* Match section background */
    color: #fff;
    padding: 10px 0;
    text-align: center;
    border-radius: 5px; /*Rounded corners */
    margin: 20px 0; /* Space around the nav bar */
}

nav a {
    color: #fff;
    text-transform: uppercase;
    padding: 10px 20px; /* Padding to match social media buttons */
    transition: background 0.3s ease;
}

nav a:hover {
    background: #423277; /* Hover effect to match social media buttons */
}

/* Social Media Buttons */
.social-media {
    margin: 20px 0;
    text-align: right;
}

.social-media a {
    color: #fff;
    background: #423277; /* Match section background */
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: 1px solid #ddd;
}

.social-media a:hover {
    background: #ff4500; /* Hover effect to match current style */
}

/* Key Features Section */
.features {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    justify-content: space-between; /* Evenly distribute space between items */
    margin: 20px 0;
}

.feature-item {
    background: #2e2e2e;
    border: 1px solid #ddd;
    padding: 20px;
    flex: 1 1 calc(31% - 20px); /* Each item takes up 1/3 of the row with some margin */
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin: 10px;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h2 {
    color: #ff4500; /* Highlight color */
    text-align: center;
    margin-bottom: 15px;
}

.feature-item img {
    display: inline-block;
    width: 60%; /* Make images take up the full width of their container */
    max-width: 65%; /* Ensure images do not exceed the container width */
    height: 60%; /* Maintain aspect ratio */
}

/* Ensuring the steps are side by side on larger screens */
@media (min-width: 992px) {
    .feature-item {
        flex: 1 1 calc(31% - 20px); /* Each item takes up 1/3 of the row with some margin */
    }
}

/* Responsive Key Features for Mobile */
@media (max-width: 991px) {
    .feature-item {
        flex: 1 1 100%; /* Full width for mobile */
        margin: 10px 0;
    }
}

/* Key Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Evenly distribute space between items */
    margin: 20px 0;
}


/* RAX Token Section */
.rax-token {
    background: #2e2e2e;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rax-token h2 {
    color: #fff; /* Changed to white */
    margin-bottom: 10px;
}

.rax-token p {
    margin-bottom: 10px;
}

.rax-token a {
    display: inline-block;
    background: #ff4500;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.rax-token a:hover {
    background: #333;
}

/* Roadmap Section */
.roadmap {
    background: #2e2e2e; /* Background to match other sections */
    padding: 20px;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid #ddd;
}

.roadmap h2 {
    color: #fff; /* White text for contrast */
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
    position: relative;
    z-index: 2;
}

.roadmap ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.roadmap li {
    margin: 20px 0;
    padding-left: 30px;
    position: relative;
}

.roadmap li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    height: 12px;
    width: 12px;
    background: #ff4500;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
}

.roadmap li strong {
    font-size: 1.2em;
    color: #ff4500; /* Highlight color */
    margin-bottom: 5px;
    display: inline-block;
}

.roadmap li p {
    margin: 5px 0 0;
    color: #ddd; /* Lighter text for readability */
}

/* Timeline Background */
.roadmap:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: linear-gradient(to bottom, #ff4500, #555);
    z-index: 1;
}

/* Keyframe Animation for Roadmap Items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roadmap li {
    animation: fadeInUp 1.5s ease-in-out;
}

/* Avascan Statistics Section */
.avascan-stats {
    background: #2e2e2e; /* Match section background */
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avascan-stats h2 {
    color: #fff; /* Changed to white */
    margin-bottom: 10px;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 50vh; /* Set height to 50% of the viewport height */
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Team Section */
.team {
    background: #2e2e2e;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team img {
    width: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.team h3 {
    margin-bottom: 5px;
    font-size: 1.2em;
    color: #fff;
}

.team p {
    color: #ddd;
    margin-bottom: 0;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Back to Top Button */
#myBtn {
    display: block !important; /* Fixed by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 16px; /* Place the button at the bottom of the page */
    right: 20px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: 1px solid white; /* Button Border */
    outline: none; /* Remove outline */
    background-color: #423277; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    /* font-size: 20px; Remove or set a default font-size here if needed */
  }
  
  #myBtn:hover {
    background-color: #555; /* Add a dark-grey background on hover */
  }
  
  /* Specific styling for the arrow inside the button */
  #myBtn::before {
    content: "⬆"; /* Ensuring the arrow is rendered */
    font-size: 19px; /* Increase font size of the arrow */
    vertical-align: middle; /* Optional: Align the arrow to the middle vertically */
  }
