body.light-mode {
    --bg-dark: #f8fafc !important;
    --bg-card: #ffffff !important;
    --border-color: rgba(0, 0, 0, 0.1) !important;
    --border-hover: rgba(0, 119, 255, 0.4) !important;
    --text-main: #0f172a !important;
    --text-slate: #475569 !important;
    --accent-cyan: #0284c7 !important;
    --accent-blue: #1558d6 !important;
    --accent-green: #059669 !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* GLOBAL SCROLLBAR POLISH */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .logo {
    color: #0f172a !important;
}

body.light-mode nav a {
    color: #334155 !important;
}

body.light-mode nav a:hover,
body.light-mode nav a.active {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08) !important;
}

body.light-mode .dropdown-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .dropdown-content a {
    color: #334155 !important;
}

body.light-mode .dropdown-content a:hover {
    background: #f1f5f9 !important;
    color: #0077ff !important;
}

body.light-mode .mobile-nav-menu {
    background: #ffffff !important;
    color: #0f172a !important;
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .mobile-nav-menu a {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .mobile-nav-menu a:hover,
body.light-mode .mobile-nav-menu a:focus {
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

body.light-mode .mobile-nav-close,
body.light-mode #menu-close-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #475569 !important;
}

body.light-mode .mobile-nav-close:hover,
body.light-mode #menu-close-btn:hover {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

/* CARDS, BLOCKS & CONTAINERS */
body.light-mode footer,
body.light-mode .footer-bottom,
body.light-mode .contact-card-box, 
body.light-mode .info-block,
body.light-mode .stat-item,
body.light-mode .project-card,
body.light-mode .feature-card,
body.light-mode .pricing-card,
body.light-mode .price-card,
body.light-mode .faq-item,
body.light-mode .container,
body.light-mode .port-card,
body.light-mode .trust-badges,
body.light-mode .why-card,
body.light-mode .process-card,
body.light-mode .testimonial-card,
body.light-mode .trust-card,
body.light-mode .vision-card,
body.light-mode .service-card-front,
body.light-mode .service-card-back,
body.light-mode .contact-info-card,
body.light-mode .contact-form-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-mode .hero-badge,
body.light-mode .badge-logo {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .btn-secondary {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

body.light-mode .btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

body.light-mode .port-mockup {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: rgba(15, 23, 42, 0.15) !important;
}

body.light-mode .port-card {
    background: #ffffff !important;
}

body.light-mode .port-tag {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0284c7 !important;
}

/* MARKETPLACE SPECIFIC LIGHT THEME OVERRIDES */
body.light-mode .jobs-hero,
body.light-mode .talent-hero {
    background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08) 0%, #f8fafc 70%) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .search-bar-wrapper,
body.light-mode .search-talent-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .job-card,
body.light-mode .talent-card,
body.light-mode .portal-card,
body.light-mode .filters-sidebar,
body.light-mode .user-profile-header,
body.light-mode .main-card,
body.light-mode .side-card,
body.light-mode .post-card,
body.light-mode .proposal-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

body.light-mode .job-card:hover,
body.light-mode .talent-card:hover {
    border-color: rgba(2, 132, 199, 0.4) !important;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1) !important;
}

body.light-mode .job-card-title,
body.light-mode .talent-name,
body.light-mode .project-title,
body.light-mode .profile-name {
    color: #0f172a !important;
}

body.light-mode .job-card-title:hover {
    color: #0284c7 !important;
}

body.light-mode .job-budget-badge {
    background: rgba(2, 132, 199, 0.1) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    color: #0284c7 !important;
}

body.light-mode .talent-rate-badge {
    color: #0284c7 !important;
}

body.light-mode .skill-tag,
body.light-mode .talent-skill,
body.light-mode .meta-badge {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #334155 !important;
}

body.light-mode .meta-badge.highlight {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    color: #0284c7 !important;
}

body.light-mode .skill-chip {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #334155 !important;
}

body.light-mode .skill-chip.active {
    background: rgba(2, 132, 199, 0.12) !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

body.light-mode .portal-tab-btn {
    color: #64748b !important;
}

body.light-mode .portal-tab-btn.active {
    color: #0284c7 !important;
    border-bottom-color: #0284c7 !important;
}

body.light-mode .status-open {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0284c7 !important;
}

body.light-mode .status-accepted,
body.light-mode .status-completed {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
}

body.light-mode .status-in_progress,
body.light-mode .status-active {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #1d4ed8 !important;
}

body.light-mode .profile-role-tag {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    color: #0284c7 !important;
}

body.light-mode .btn-outline {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

body.light-mode .btn-outline:hover {
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    background: #f8fafc !important;
}

/* FORM INPUTS IN LIGHT THEME */
body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
    border-color: #0284c7 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #94a3b8 !important;
}

body.light-mode .social-icons a {
    color: #475569 !important;
}

body.light-mode .social-icons a:hover {
    color: #0284c7 !important;
}

body.light-mode .config-banner-notice {
    background: linear-gradient(90deg, #e0f2fe, #f0f9ff) !important;
    color: #0369a1 !important;
    border-bottom: 1px solid rgba(2, 132, 199, 0.2) !important;
}

body.light-mode .config-banner-btn {
    background: #0284c7 !important;
    color: #ffffff !important;
}

/* AUTH MODAL LIGHT THEME */
body.light-mode .gahonsh-auth-box {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(2, 132, 199, 0.08) !important;
}

body.light-mode .gahonsh-role-card {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .gahonsh-role-card h4 {
    color: #0f172a !important;
}

body.light-mode .gahonsh-role-card.selected {
    background: rgba(2, 132, 199, 0.08) !important;
    border-color: #0284c7 !important;
}

body.light-mode .gahonsh-tab-btn {
    color: #64748b !important;
}

body.light-mode .gahonsh-tab-btn.active {
    color: #0284c7 !important;
    border-bottom-color: #0284c7 !important;
}

/* ============================================
   SCROLL-TRIGGERED FADE-IN ANIMATIONS
   Targeting: .why-card, .port-card, .process-card
   ============================================ */
.why-card,
.port-card,
.process-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
    will-change: opacity, transform;
}

.why-card.revealed,
.port-card.revealed,
.process-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.why-card.revealed:hover {
    transform: translateY(-5px);
}

.port-card.revealed:hover {
    transform: translateY(-5px);
}

.process-card.revealed:hover {
    transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
    .why-card,
    .port-card,
    .process-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================
   MOBILE NAVIGATION USABILITY & TOUCH TARGETS
   Enhanced padding, large tap areas & close btn
   ============================================ */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: min(320px, 86vw);
    height: 100%;
    background: #070c19;
    border-left: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    z-index: 2001;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-close,
#menu-close-btn {
    align-self: flex-end;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin-bottom: 8px;
    margin-right: -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    font-size: 1.45rem !important;
    color: var(--text-slate, #94a3b8);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    flex-shrink: 0;
}

.mobile-nav-close:hover,
#menu-close-btn:hover {
    color: var(--accent-cyan, #00ffcc) !important;
    background: rgba(0, 255, 204, 0.12);
    border-color: rgba(0, 255, 204, 0.35);
    transform: scale(1.06);
}

.mobile-nav-close:active,
#menu-close-btn:active {
    transform: scale(0.92);
}

.mobile-nav-menu a {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 48px !important;
    padding: 13px 18px !important;
    margin: 2px 0;
    color: var(--text-main, #f8fafc);
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
    background: rgba(0, 255, 204, 0.08);
    color: var(--accent-cyan, #00ffcc) !important;
    border-color: rgba(0, 255, 204, 0.25);
    transform: translateX(4px);
}

.mobile-nav-menu a:active {
    transform: translateX(2px) scale(0.99);
}

