/* Navbar Link Styling */
.custom-nav .nav-link {
    font-weight: 600;
    font-size: 1.3rem; /* increased text size */
    color: #000000; /* Changed to black */
    padding: 10px 14px; /* slightly larger padding */
    position: relative;
    transition: all 0.3s ease;
}

/* Navbar Link Spacing & Style */
.custom-nav .nav-item {
    margin-left: 40px;
}

.custom-nav .nav-item:first-child {
    margin-left: 0;
}

/* Underline Hover Effect */
.custom-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF6B00; /* Changed to orange */
    transition: width 0.3s ease;
}

.custom-nav .nav-link:hover::after,
.custom-nav .nav-link.active::after {
    width: 100%;
}

.custom-nav .nav-link:hover,
.custom-nav .nav-link.active {
    color: #FF6B00; /* Changed to orange */
    transform: translateY(-2px);
}

/* Brand Text */
.navbar-brand .brand-text {
    font-size: 1.4rem; /* larger brand text */
    color: #000000; /* Changed to black */
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar-brand .brand-text:hover {
    color: #FF6B00; /* Orange on hover */
}

/* Buttons */
.btn-primary,
.btn-download,
.btn-outline-primary {
    font-size: 1.15rem; /* bigger button text */
    font-weight: 600;
    padding: 10px 22px; /* more horizontal padding */
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Primary & Download Buttons */
.btn-primary,
.btn-download {
    background: linear-gradient(135deg, #000000, #1a1a1a); /* Black gradient */
    border: 2px solid #FF6B00; /* Orange border */
    color: #FF6B00; /* Orange text */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before,
.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B00, #E65100); /* Orange gradient */
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-download:hover::before {
    left: 0;
}

.btn-primary:hover,
.btn-download:hover {
    color: #000000; /* Black text on hover */
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.4);
}

/* Outline Button (Login) */
.btn-outline-primary {
    color: #000000; /* Black text */
    border: 2px solid #FF6B00; /* Orange border */
    background-color: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B00, #E65100); /* Orange gradient */
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover::before {
    left: 0;
}

.btn-outline-primary:hover {
    color: #000000; /* Black text on hover */
    border-color: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);
}

/* Navbar Shrink */
.navbar.shrink {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.15); /* Orange tint in shadow */
    background-color: #ffffff !important;
    border-bottom: 2px solid #FF6B00; /* Orange border */
}

.navbar.shrink .navbar-brand img {
    height: 48px;
}

.navbar.shrink .navbar-brand .brand-text {
    color: #000000; /* Keep black */
}

.navbar.shrink .navbar-brand .brand-text:hover {
    color: #FF6B00; /* Orange on hover */
}

/* Default Responsive */
@media (max-width: 991px) {
    .custom-nav .nav-item {
        margin-left: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .custom-nav .nav-link {
        font-size: 1.1rem; /* slightly smaller on mobile */
    }

    .btn-primary,
    .btn-download,
    .btn-outline-primary {
        width: 100%;
        font-size: 1.05rem;
        margin-top: 8px;
        justify-content: center;
    }
}

/* -----------------------------------------
   ✔ PROFESSIONAL MOBILE VIEW REFINEMENTS
   ----------------------------------------- */
@media (max-width: 576px) {

    /* Brand text + logo spacing improved */
    .navbar-brand .brand-text {
        font-size: 1.25rem;
        letter-spacing: 0.5px;
        color: #000000; /* Black */
    }
    .navbar-brand img {
        height: 34px;
    }

    /* Better spacing between nav links */
    .custom-nav .nav-item {
        margin-bottom: 14px;
    }

    /* Mobile link style */
    .custom-nav .nav-link {
        font-size: 1.05rem;
        padding: 8px 10px;
        color: #000000; /* Black */
    }

    .custom-nav .nav-link::after {
        height: 1.5px;
        background-color: #FF6B00; /* Orange */
    }

    .custom-nav .nav-link:hover,
    .custom-nav .nav-link.active {
        color: #FF6B00; /* Orange */
    }

    /* Reduce movement */
    .custom-nav .nav-link:hover,
    .custom-nav .nav-link.active {
        transform: translateY(-1px);
    }

    /* Buttons stack smoothly */
    .btn-primary,
    .btn-download,
    .btn-outline-primary {
        width: 100%;
        padding: 10px 18px;
        font-size: 1rem;
        margin-top: 10px;
    }

    /* Navbar shrink on mobile */
    .navbar.shrink {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        border-bottom: 2px solid #FF6B00; /* Orange border */
    }

    .navbar.shrink .navbar-brand img {
        height: 30px;
    }

    .navbar.shrink .navbar-brand .brand-text {
        color: #000000; /* Black */
    }

    /* Improve menu dropdown spacing */
    .navbar-collapse {
        padding: 10px 0;
    }

    /* Mobile menu background when expanded */
    .navbar-collapse.show {
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        border: 1px solid #FF6B00;
        box-shadow: 0 8px 16px rgba(255, 107, 0, 0.1);
    }
}

/* Additional enhancements for better UX */

/* Active state for nav links */
.custom-nav .nav-link.active {
    color: #FF6B00 !important; /* Orange for active link */
    font-weight: 700;
}

/* Toggler button customization */
.navbar-toggler {
    border: 2px solid #FF6B00 !important; /* Orange border */
    color: #000000 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown menu styling (if you use dropdowns) */
.dropdown-menu {
    border: 2px solid #FF6B00 !important;
    box-shadow: 0 8px 16px rgba(255, 107, 0, 0.15) !important;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #FF6B00, #E65100) !important;
    color: #000000 !important;
}

.dropdown-item.active {
    background: #000000 !important;
    color: #FF6B00 !important;
}

/* Badge styling */
.badge.bg-primary {
    background: linear-gradient(135deg, #000000, #1a1a1a) !important;
    color: #FF6B00 !important;
    border: 1px solid #FF6B00;
}

/* Progress bar */
.progress-bar {
    background: linear-gradient(90deg, #FF6B00, #E65100) !important;
}

/* Card borders */
.card {
    border: 1px solid rgba(255, 107, 0, 0.2) !important;
}

.card-header {
    border-bottom: 2px solid #FF6B00 !important;
}

/* List group active item */
.list-group-item.active {
    background: linear-gradient(135deg, #000000, #1a1a1a) !important;
    border-color: #FF6B00 !important;
    color: #FF6B00 !important;
}

/* Form focus states */
.form-control:focus {
    border-color: #FF6B00 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar-thumb {
    background: #FF6B00 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #E65100 !important;
}

::-webkit-scrollbar-track {
    background: #000000 !important;
}

/* Loading spinner */
.spinner-border {
    color: #FF6B00 !important;
}

.spinner-grow {
    color: #000000 !important;
}
