/* ==========================================================================
   HOME TOPBAR & HEADER STYLES
   ========================================================================== */

/* 1. Topbar Base */
.home-topbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1050;
    transition: all 0.3s ease;
}

.home-topbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

/* 2. Logo & Brand */
.topbar-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.text-accent {
    color: var(--secondary-color);
}

/* 3. Navigation Links */
.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-main);
    padding: 0.75rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

/* Underline animation on hover */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* 4. Dropdown Menus */
.dropdown-menu {
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem !important;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 107, 0, 0.08);
    color: var(--secondary-color);
    padding-left: 1.75rem; /* Slight slide effect */
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Scrollable menu for many categories */
.max-height-300 {
    max-height: 300px;
    overflow-y: auto;
}

/* 5. Profile Section */
.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--bg-body);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.profile-trigger:hover .profile-avatar {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.profile-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* 6. Contact Button */
.btn-contact-trigger {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact-trigger:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 7. Modal Enhancements */
.modal-content {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

/* 8. Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInDown 0.3s ease forwards;
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }
    .navbar-nav .nav-link::after {
        display: none; /* Disable underline animation on mobile */
    }
}

