/* GLOBAL */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* NAVIGATION BAR */
.navbar-custom {
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 20;
}

.navbar-custom .nav-link {
    color: white;
    font-weight: 500;
    margin-right: 20px;
}

.navbar-custom .logo {
    height: 40px;
    transition: 0.3s ease;
    position: absolute;
}

/* Show only white logo initially */
.logo-color { opacity: 0; }

/* NAVBAR SCROLLED STATE */
.navbar-scrolled {
    background: white !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.navbar-scrolled .nav-link {
    color: #000 !important;
}

.navbar-scrolled .logo {
    height: 32px;
}

/* HERO BACKGROUND */
.hero-bg {
    min-height: 100vh;
    width: 100%;
    /* Layering: gradient on top of the image */
    background: 
        linear-gradient(135deg, rgba(10,15,36,0.7), rgba(0,43,69,0.7), rgba(0,95,117,0.7)),
        url('images/market.jpg') no-repeat center center;
    background-size: cover;          /* make image cover entire section */
    background-attachment: scroll;   /* allows sliding */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow: hidden;
}



/* LOGIN / SIGN UP CARD */
.login-card {
    max-width: 700px;
    width: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    animation: fadeUp 0.8s ease-out;
    transition: background 0.3s ease;
    margin-top: 40px; 
}


@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* LOGIN BUTTON */
.btn-login {
    background: #000;
    color: #fff;
    width: 100%;
    padding: 12px;
    font-weight: 500;
    border: none;
    transition: 0.3s;
}

.btn-login:hover {
    background: #333;
}

/* FOOTER */
footer {
    background: #ccc;
    color: #000;
    padding: 25px 0;
    text-align: center;
}

/* ACCOUNT TYPE CARDS */
.account-type {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.account-card {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    padding: 50px 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
    border: 1px solid #ddd;
}

.account-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e1e7f0, #cfd8e5);
}

.account-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
}

.account-card span {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .account-type {
        flex-direction: column;
        align-items: center;
    }
    .account-card {
        max-width: 90%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .navbar-custom {
        background: rgba(255,255,255,0.95);
    }
    .navbar-custom .nav-link {
        color: #000 !important;
    }
}

/* Hover Gradient Effect for Sign-Up Card */
.hover-gradient-card {
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
    border-radius: 18px;
    padding: 50px 30px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.hover-gradient-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #e1e7f0, #cfd8e5);
}

@media (max-width: 768px) {
    .hero-bg {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .login-card {
        margin-top: 20px;
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-bg {
        padding-top: 80px;
        padding-bottom: 20px;
    }

    .login-card {
        margin-top: 10px;
        padding: 25px;
    }
}

/* Hero Background for Dashboard */
.hero-bg-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f24, #002b45, #005f75);
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Cards */
.hover-gradient-card {
    transition: 0.3s ease;
    border-radius: 16px;
}

.hover-gradient-card:hover {
    background: linear-gradient(145deg, #f0f4f8, #e0e7ff);
}

/* Navbar */
.navbar-custom {
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 20;
}

.navbar-custom .nav-link {
    color: white;
    font-weight: 500;
    margin-right: 20px;
}

.navbar-scrolled {
    background: white !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.navbar-scrolled .nav-link {
    color: #000 !important;
}

/* Table Hover */
.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.1);
    cursor: pointer;
}
