/* ---------------------------
   GLOBAL STYLING
---------------------------- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ---------------------------
   NAVBAR FIX
---------------------------- */
.navbar {
    background: #004aad;
    position: relative;
    z-index: 5000 !important; /* dropdown always above hero */
}

.navbar-brand, 
.nav-link {
    color: white !important;
}

/* Dropdown fix */
.dropdown-menu {
    z-index: 6000 !important;
    border-radius: 10px;
}

/* Profile Name + Avatar */
.nav-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.9);
}

.nav-username {
    color: #fff;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .nav-username { 
        display: none; 
    }
}

/* ---------------------------
   HERO SECTION (HOME PAGE)
---------------------------- */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)),
                url('../img/project1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    position: relative;
    z-index: 100; /* lower than navbar */
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto;
}

/* Buttons */
.btn-primary {
    background: #ff9800;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #ffa726;
}

/* ---------------------------
   FEATURES SECTION
---------------------------- */
.features {
    padding: 60px 0;
}

.feature-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* ---------------------------
   FOOTER
---------------------------- */
footer {
    background: #004aad;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 50px;
}

/* Success message */
.alert-success {
    font-size: 16px;
    padding: 12px;
    border-radius: 5px;
}

.navbar {
    position: relative !important;
    z-index: 5000 !important;
}
.dropdown-menu {
    z-index: 6000 !important;
}

.nav-avatar {
    transition: 0.3s ease;
}

.nav-avatar:hover {
    transform: scale(1.12);
}

.nav-avatar {
    position: relative;
}

.nav-avatar::after {
    content: "";
    width: 9px;
    height: 9px;
    background: #20e355;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid #ffffff;
}

.dropdown-menu {
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* ================= TEST OVERVIEW ================= */
.test-overview {
    padding: 70px 20px;
    text-align: center;
}

.section-heading {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.section-sub {
    max-width: 700px;
    margin: 0 auto 45px;
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.test-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.test-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.1);
}

.test-box .icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.test-box h4 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.test-box p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* ================= WHY US ================= */
.why-us {
    background: linear-gradient(135deg, #0f172a, #020617);
    padding: 80px 20px;
}

.section-heading.white {
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.why-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12);
    transition: 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.1);
}

.why-card h4 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.why-card p {
    font-size: 15px;
    color: #cbd5f5;
    line-height: 1.6;
}

/* ================= CTA ================= */
.cta-section {
    background: #f8fafc;
    padding: 90px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 34px;
    font-weight: 700;
    color: #020617;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 30px;
}

.btn-main {
    display: inline-block;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37,99,235,0.45);
}

.btn-main.big {
    font-size: 18px;
    padding: 16px 42px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .section-heading {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 15px;
    }
}
