*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #0f172a;
    color: white;
    font-family: Arial, sans-serif;
}
header{
    height: 70px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 50px;

    background-color: #111827;    
}
.menu{
    font-size: 18px;
    display: flex;
    gap: 50px;
}
.login-page{
    background-color: linear-gradient(45deg,#2563eb,#7c3aed);
    width: 110px;
    height: 35px;
}
.login-page:hover{
    background-color: azure;
    transition: 2s;
}
.hero{
    height: 550px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0px 50px;

    gap: 40px;
}



.hero-text{
    width: 45%;

    display: flex;

    flex-direction: column;

    gap: 20px;
}



.hero-text h1{
    font-size: 55px;

    line-height: 70px;

    width: 600px;
}



.hero-text p{
    font-size: 20px;

    line-height: 30px;

    width: 500px;
}



.hero-buttons{
    display: flex;

    gap: 20px;

    margin-top: 20px;
}



.btn{
    width: 180px;

    height: 50px;

    border: none;

    border-radius: 8px;

    font-size: 16px;

    cursor: pointer;
}
.hero-image img{
    width: 700px;

    height: 420px;

    border-radius: 10px;
}
.trading-panel{
    width: 100%;

    height: 500px;

    display: flex;

    justify-content: center;

    align-items: center;
}



.trade-form{
    width: 400px;

    background-color: #111827;

    padding: 40px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    gap: 25px;
}



.trade-form input{
    width: 100%;

    height: 50px;

    padding-left: 15px;

    font-size: 16px;

    border: none;

    border-radius: 6px;
}



.action-box{
    display: flex;

    flex-direction: column;

    gap: 10px;

    color: white;
}



.action-box select{
    width: 100px;

    height: 40px;

    border-radius: 5px;
}



.trade-form button{
    width: 100%;

    height: 50px;

    border: none;

    border-radius: 6px;

    font-size: 18px;

    background-color: #22c55e;

    color: white;

    cursor: pointer;
}
.portfolio{
    width: 100%;

    height: 500px;

    padding-top: 80px;

    padding-left: 50px;

    padding-right: 50px;
}



.portfolio h2{
    font-size: 40px;

    font-weight: bold;

    color: white;

    margin-bottom: 40px;

    text-align: center;
}



.portfolio-table{
    width: 850px;

    background-color: #374151;

    padding: 30px;

    border-radius: 15px;

    margin: auto;
}



.portfolio table{
    width: 100%;

    border-collapse: collapse;

    color: white;
}



.portfolio th{
    height: 60px;

    font-size: 22px;
}



.portfolio td{
    height: 50px;

    text-align: center;

    font-size: 20px;
}



.portfolio tr{
    border-bottom: 1px solid gray;
}



.profit{
    color: #22c55e;

    font-weight: bold;
}

/* =========================
   MOBILE RESPONSIVE CODE
   ADD THIS AT END OF CSS
========================= */

@media(max-width:768px){

    /* HEADER */

    header{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;

        height: auto;
        padding: 20px;
        text-align: center;
    }

    .menu{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;

        gap: 15px;

        font-size: 16px;
    }

    .login-page{
        width: 100px;
    }

    /* HERO SECTION */

    .hero{
        flex-direction: column;

        height: auto;

        padding: 40px 20px;

        text-align: center;
    }

    .hero-text{
        width: 100%;

        align-items: center;
    }

    .hero-text h1{
        width: 100%;

        font-size: 38px;

        line-height: 50px;
    }

    .hero-text p{
        width: 100%;

        font-size: 18px;

        line-height: 28px;
    }

    .hero-buttons{
        flex-direction: column;

        width: 100%;

        align-items: center;
    }

    .btn{
        width: 90%;
    }

    .hero-image img{
        width: 100%;

        height: auto;
    }

    /* MARKET SECTION */

    .markets{
        flex-direction: column !important;

        align-items: center;

        gap: 20px !important;
    }

    .market-card{
        width: 90% !important;

        margin: auto;
    }

    .Trade{
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* TRADING + PORTFOLIO */

    nav{
        flex-direction: column;

        align-items: center;
    }

    .trading-panel{
        width: 100%;

        height: auto;

        margin-top: 40px !important;
    }

    .trade-form{
        width: 90%;
    }

    .portfolio{
        width: 100%;

        height: auto;

        padding: 40px 20px;
    }

    .portfolio h2{
        font-size: 32px;
    }

    .portfolio-table{
        width: 100%;

        overflow-x: auto;

        padding: 20px;
    }

    .portfolio table{
        min-width: 700px;
    }

    /* FEATURES */

    .features{
        width: 100% !important;

        height: auto !important;

        padding: 20px !important;

        display: flex;

        flex-direction: column;

        gap: 30px;

        text-align: center;
    }

    /* FOOTER */

    /* FOOTER */

.footer{
    padding: 40px 20px;
}

.footer-container{
    display: grid;

    grid-template-columns: repeat(2,1fr);

    gap: 25px;
}

.footer-column{
    text-align: center;
}

.copyright{
    font-size: 14px;
}

}
@media(max-width:480px){

    .footer-container{
        grid-template-columns: repeat(2,1fr);

        gap: 20px;
    }

    .footer-column h3{
        font-size: 18px;
    }

    .footer-column a{
        font-size: 14px;
    }

}
.login-box:hover{
    transform: translateX(200px);
}