/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@400;700&family=Montserrat:wght@400;700&display=swap');

/* Colors */
:root {
    --background: #000000;
    --border: #1a1a1a;
    --white: white;
    --grey: #333;
    --lightgrey: #555;
    --darkgrey: #222;
    --yellow: #ffcc00;
}

/* Basic reset and styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improved scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #e6b800;
}

/* Base Styles */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: var(--background);
    color: var(--grey);
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #0e1113 var(--border);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent;
    color: #fff;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header__container {
    padding: 0 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
}

header a:visited, header a {
    text-decoration: none;
    color: var(--white);
}

header a:hover {
    color: var(--yellow);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.625rem;
    font-weight: bold;
}

nav {
    position: relative;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    width: auto;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--yellow);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 25px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    background-color: var(--white);
    height: 3px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Media Query for Mobile and Tablet Devices */
@media (max-width: 768px) {
    /* Hide the regular menu */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100vh;
        background: rgba(0, 0, 0, 0.95); /* Slightly darker for better visibility */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 999; /* Ensures it overlays other content */
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }    

    /* Style the menu items */
    .menu li {
        text-align: center;
        margin: 1rem 0; /* More spacing */
    }

    .menu li a {
        color: var(--white); /* Ensure visibility */
        font-size: 1.5rem; /* Larger for better readability */
        padding: 1rem 2rem; /* Better tap area */
        display: block;
        text-transform: uppercase;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .menu li a:hover {
        background-color: var(--primary-color);
        transform: scale(1.05);
    }

    /* Show the hamburger menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 25px;
        width: 30px;
        cursor: pointer;
        z-index: 1000; /* Ensure it stays above menu */
    }

    .hamburger span {
        background-color: var(--white);
        height: 3px;
        width: 100%;
        transition: all 0.3s ease;
    }

    /* Optional: Add animation to the hamburger icon when active */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Main Banner */
.banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.banner .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner video {
    width: 100vw;  /* Ensure video fully fills the viewport width */
    height: 100vh; /* Ensure video fully fills the viewport height */
    object-fit: cover;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden; /* Prevent any overflow */
}


.banner h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 44px;
    position: relative;
    z-index: 2;
    color: var(--white);
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: transparent;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        border-radius: 5px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .banner {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    }

    .banner video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translate(-50%, -50%);}

    .banner h2 {
        font-size: 28px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    footer {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-logo img {
        width: 120px;
    }

    footer p {
        font-size: 12px;
    }
}

/* Footer */
footer {
    background: var(--background); 
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #444;
    font-family: 'Montserrat', Arial, sans-serif;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 20px;
}

footer p {
    margin: 10px 0;
    font-size: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-links li {
    display: inline;
}

.footer-links li a {
    color: grey;
    text-decoration: none;
    font-size: 15px;
}

.footer-links li a:hover {
    color: #ffcc00;
}

.introduction, .featured-coins, .daily-news {
    padding: 20px 40px;
}

.introduction h2, .featured-coins h2, .daily-news h2 {
    font-size: 40px;
}

.introduction p, .featured-coins p, .daily-news p {
    font-size: 19px;
}

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .featured-coins-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .banner h2 {
        font-size: 56px;
    }

    .footer-logo img {
        width: 200px;
    }
}

/* Medium Screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .featured-coins-container {
        flex-wrap: wrap;
    }

    .banner h2 {
        font-size: 46px;
    }

    .footer-logo img {
        width: 180px;
    }
}

/* Tablets and Small Laptops (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    nav ul {
        flex-direction: row;
        justify-content: space-around;
    }

    .banner h2 {
        font-size: 36px;
    }

    .introduction, .featured-coins, .daily-news {
        padding: 15px 20px;
    }

    .introduction h2, .featured-coins h2, .daily-news h2 {
        font-size: 32px;
    }

    .footer-logo img {
        width: 150px;
    }
}

/* Mobile Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    nav ul {
        flex-direction: column;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .banner {
        height: 50vh;
        padding: 30px 10px;
    }

    .banner h2 {
        font-size: 28px;
    }

    .introduction, .featured-coins, .daily-news {
        padding: 10px 15px;
    }

    .introduction h2, .featured-coins h2, .daily-news h2 {
        font-size: 28px;
    }

    .footer-logo img {
        width: 120px;
    }
}

/* Small Mobile Devices (Up to 575px) */
@media (max-width: 575px) {
    nav ul {
        flex-direction: column;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .banner {
        height: 40vh;
        padding: 20px 10px;
    }

    .banner h2 {
        font-size: 22px;
    }

    .introduction, .featured-coins, .daily-news {
        padding: 10px 10px;
    }

    .introduction h2, .featured-coins h2, .daily-news h2 {
        font-size: 22px;
    }

    .footer-logo img {
        width: 100px;
    }

    .footer-links {
        flex-direction: column;
        gap: 5px;
    }

    footer p {
        font-size: 12px;
    }
}