
#crypto-prices-container {
    background-color: #081229;
    color: white;
    padding: 10px 0;
    text-align: center;
    position: relative;
    width: 100%;
    overflow: hidden; /* Hide anything outside container */
}

#crypto-prices {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll 50s linear infinite;
    padding: 0 10px;
    min-width: 100%;  /* Ensure it spans at least full width */
}

.price {
    margin-right: 15px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Keyframes for scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive breakpoints */
@media screen and (max-width: 1200px) {
    .price {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .price {
        font-size: 12px;
        margin-right: 10px;
    }

    #crypto-prices {
        animation: scroll 60s linear infinite;
    }
}

@media screen and (max-width: 480px) {
    .price {
        font-size: 10px;
        margin-right: 8px;
    }

    #crypto-prices {
        animation: scroll 70s linear infinite;
        padding-right: 10px; /* Ensure the last item isn't cut off */
    }

    .price:last-child {
        margin-right: 0;
    }
}

header {
    padding: 0 0 5px 0;
    width: 100%;
    z-index: 1000;
    background-color: #081229;
    color: white;
    position: fixed;
    top: 0;
    margin: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
}

header .container h1 a {
    text-decoration: none;
    color: #ff8c00;
}

header .container a:hover {
    text-decoration: underline;
    color: green;
}

 
    .logo-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 300px; /* Adjust width as needed */
    }
    
    .logo-text {
        font-size: 24px; /* Adjust size as needed */
        color: #ff8c00;
        text-decoration: none;
        font-weight: bold;
        white-space: nowrap;
    }

    .header-logo {
        height: 50px; /* Adjust the logo size */
        margin-left: 0; /* Add spacing */
    }

    
    
header nav h1 a {
    text-decoration: none;
    color: white;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

header nav ul li {
    margin: 0 29px;
    position: relative;
}

header nav ul li a,
header nav ul li button {
    text-decoration: none;
    color: white; /* Changed color to black */
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

header nav ul li a:hover,
header nav ul li button:hover {
    color: #87CEFA;
    text-decoration: underline; /* Added */
}

header nav ul li button {
    background: none;
    border: none;
    color: white; /* Changed color to black */
    cursor: pointer;
    padding: 5px 10px;
}

/* Improved Dropdown Menu */
/* Improved Dropdown Menu Container */
.dropdown-menu {
    position: relative;
    display: inline-block; /* Changed from default */
    vertical-align: middle; /* Aligns properly with other nav items */
}

/* Main Menu Item - Now stays on one line */
.dropdown-menu > a {
    white-space: nowrap; /* Prevents text wrapping */
    display: inline-block;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
}

/* Dropdown Arrow - More subtle */
.dropdown-menu > a::after {
    content: "▾"; /* Simpler arrow */
    font-size: 0.7em;
    margin-left: 3px;
    transition: transform 0.2s ease;
}

/* Improved Dropdown Panel */
/* Improved Dropdown Panel - Make items stack vertically */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #0a1a3a;
    border: 1px solid #ff8c00;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.25s ease;
    z-index: 1000;
    padding: 5px 0;
    display: block; /* Ensure it's displayed as block */
}

/* Dropdown Items - Stack vertically */
.dropdown li {
    position: relative;
    display: block; /* Each li takes full width */
    width: 70%; /* Full width of parent */
}

.dropdown a {
    white-space: nowrap;
    padding: 8px 15px;
    display: block; /* Change from flex to block */
    font-size: 0.95em;
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width */
}

/* Hover effect for dropdown items */
.dropdown a:hover {
    color: #87CEFA;
}

/* Hover States */
.dropdown-menu:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items - More compact */
.dropdown li {
    position: relative;
}

/* Mobile Optimization */
@media screen and (max-width: 768px) {
    .dropdown-menu > a {
        padding: 8px 12px; /* Slightly smaller padding */
    }
    
    .dropdown {
        position: static;
        border: none;
        box-shadow: none;
        display: none;
        opacity: 1;
        transform: none;
        padding-left: 15px;
    }
    
    .dropdown-menu.active .dropdown {
        display: block;
    }
}

.menu-toggle {
    display: none; /* Hide the menu toggle by default */
    cursor: pointer;
    font-size: 30px;
    color: white;
    position: absolute;
    right: 6%;
    top: 3%;
}

.dark-mode {
    background-color: #121212;
    color: white;
}


.menu-toggle i {
    font-size: 24px; /* Adjust size */
    color: white;    /* Icon color */
    transition: transform 0.3s ease; /* Optional smooth animation */
}

.menu-toggle:hover i {
    transform: scale(1.2); /* Slight enlargement on hover */
    color: #87cefa;       /* Hover color */
}



/*Media Query*/
@media screen and (max-width: 768px) {
    header {
        position: static; /* Change position to static */
        top: 0;
    }

    .menu-toggle {
        display: block; /* Show the menu toggle on small screens */
    }

    header .container {
        flex-direction: column;
        align-items: center; /* Center align items */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center; /* Center align items */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        margin: 10px 0;
    }

    .dropdown {
        position: static;
        display: none;
    }

    .dropdown-menu:hover .dropdown,
    .language-dropdown:hover .dropdown {
        display: block;
    }

    .social-icons {
        margin-bottom: 10px;
    }
    .search-icon {
        font-size: 24px;
        cursor: pointer; /* Add pointer cursor to indicate interactivity */
    }
}


.container {
    width: 100%;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.container h1 a {
    color: blue;
}

.container a:hover {
    text-decoration: underline; 
    color: green;
}


/* Enhanced Social Icons with Original Colors */
.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff8c00; /* Original orange color */
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icons a i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Hover Effects - Maintain original blue */
.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: #87CEFA; /* Original blue hover color */
}

.social-icons a:hover i {
    transform: scale(1.1);
}

/* Tooltip styling */
.social-icons a::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #081229;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
    border: 1px solid #ff8c00;
}

.social-icons a:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

/* Desktop - Right Edge Positioning */
@media screen and (min-width: 769px) {
    .social-icons {
        position: fixed;
        top: 50%;
        right: -15px; /* Closer to edge */
        flex-direction: column;
        transform: translateY(-50%);
        z-index: 1000;
        background: rgba(8, 18, 41, 0.9);
        padding: 10px 5px;
        border-radius: 20px;
        border: 1px solid #ff8c00;
        gap: 10px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }

    .social-icons a::after {
        right: 45px;
        left: auto;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    .social-icons a:hover::after {
        right: 50px;
        bottom: auto;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .social-icons {
        gap: 10px;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }

    .social-icons a i {
        font-size: 16px;
    }
}

/* Animation */
@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.social-icons a {
    animation: subtleBounce 3s infinite;
}

.social-icons a:nth-child(2) {
    animation-delay: 0.3s;
}
    
    /* General search bar container */
    .search-bar {
        display: none;
        position: fixed;
        top: 16%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px;
        border-radius: 8px;
        width: 100%;
        max-width: 500px; /* Adjust width for larger screens */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1001; /* Ensure it's above other content */
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Show the search bar when active */
    .search-bar.active {
        display: block;
        opacity: 1;
    }
    
    /* Input field */
    #search-input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ff8c00;
        border-radius: 4px;
        color: white;
        background-color: #121212;
        font-size: 16px;
        outline: none;
        transition: background-color 0.3s ease;
    }
    
    /* Focus style for input */
    #search-input:focus {
        background-color: #1e1e1e;
        border-color: #87CEFA;
    }
    
    /* Button styles */
    .search-button {
        display: block;
        margin: 5px auto; /* Centers the button horizontally */
        background-color: #ff8c00;
        color: white;
        padding: 12px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }
    
    /* Hover effect for button */
    .search-button:hover {
        background-color: green;
    }
    
    /* Close button for search */
    #search-close {
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        position: absolute;
        top: 10px;
        right: 10px;
        cursor: pointer;
    }
    
    /* Hover effect for close button */
    #search-close:hover {
        color: #ff8c00;
    }
    
    /* General search icon styling */
    .search-icon {
        cursor: pointer;
        font-size: 30px; /* Adjusted size for visibility */
        color: #ff8c00;
        position: absolute; /* Position it absolutely by default */
        top: 25px;
        right: 10px;
        z-index: 1000;
        transition: color 0.3s ease;
    }
    
    /* Hover effect for search icon */
    .search-icon:hover {
        color: #87cefa;
    }
    
    /* Centering the search icon under <h1> for smaller screens */
    @media screen and (max-width: 768px) {
        .search-icon {
            position: relative; /* Remove absolute positioning */
            top: 10px; /* Adjust for vertical spacing */
            right: 50%; /* Center horizontally */
            transform: translateX(50%); /* Exact centering */
            font-size: 28px; /* Slightly smaller for mobile */
        }
        
        /* Center search icon even more on very small screens */
        @media screen and (max-width: 480px) {
            .search-icon {
                font-size: 26px; /* Even smaller on small phones */
            }
        }
    }
    
    /* Responsiveness for smaller screens (max-width: 768px) */
    @media screen and (max-width: 768px) {
        .search-bar {
            width: 90%; /* Increased width for mobile screens */
            padding: 10px;
            left: 50%;
            top: 10%;
            transform: translateX(-50%); /* Center the search bar */
        }
    
        #search-input {
            padding: 10px;
            font-size: 14px; /* Adjust input font size for mobile */
            width: 90%
        }
    
        .search-button {
            padding: 10px 15px;
            font-size: 14px; /* Adjust button size */
        }
    
        #search-close {
            font-size: 25px; /* Smaller close button */
            right: 15px; /* Adjust the position of close button */
        }
    
        .search-icon {
            font-size: 28px; /* Adjust search icon size for mobile */
            top: 5px; /* Adjust the position for mobile screens */
            right: 20px; /* Adjust right position */
        }
    }
    
    /* Additional media query for even smaller screens (max-width: 480px) */
    @media screen and (max-width: 480px) {
        .search-bar {
            width: 90%; /* Full width search bar on small screens */
        }
    
        #search-input {
            padding: 8px 10px;
            font-size: 14px;
        }
    
        .search-button {
            padding: 8px 12px;
            font-size: 14px;
        }
    
        .search-icon {
            font-size: 26px; /* Even smaller icon for very small screens */
        }
    }



    .popup-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }

    .popup-content {
        background: #081229;
        color: white;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        width: 90%;
        max-width: 400px;
    }

    .popup-content h2 {
        margin-bottom: 10px;
        color: #ff8c00;
    }

    .popup-content p {
        margin-bottom: 20px;
    }

    .popup-content input[type="email"] {
        width: calc(100% - 20px);
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ff8c00;
        border-radius: 5px;
        background-color: #121212;
        color: white;
        outline: none;
    }

    .popup-content button {
        background-color: #ff8c00;
        color: white;
        border: none;
        padding: 10px 10px;
        margin-left: 1px;
        cursor: pointer;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .popup-content button:hover {
        background-color: green;
    }

    .close-popup-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px 10px;
    }

    .close-popup-btn:hover {
        color: #ff8c00;
    }
    
    
    
    
    
  @keyframes floatAndBreathe {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-5px) rotate(2deg) scale(1.02);
    }
    50% {
        transform: translateY(0) rotate(-2deg) scale(1);
    }
    75% {
        transform: translateY(-3px) rotate(1deg) scale(1.01);
    }
}

.header-logo {
    height: 50px;
    margin-left: 0;
    animation: floatAndBreathe 6s infinite ease-in-out;
    transform-origin: center bottom; /* Makes the rotation look more natural */
    will-change: transform; /* Improves performance */
}



