/* ========== HB Otomotiv - Custom Styles ========== */

/* ===== LIGHT MODE ===== */
html:not(.dark) body {
    background: #f0f4f8;
    color: #1a202c;
}

/* Backgrounds */
html:not(.dark) .bg-dark-950 { background: #f0f4f8 !important; }
html:not(.dark) .bg-dark-900\/80 { background: rgba(255,255,255,0.92) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important; }
html:not(.dark) .bg-dark-900\/60 { background: #ffffff !important; box-shadow: 0 1px 10px rgba(0,0,0,0.06) !important; }
html:not(.dark) .bg-dark-900\/95 { background: rgba(255,255,255,0.96) !important; }
html:not(.dark) .bg-dark-900\/50 { background: rgba(255,255,255,0.85) !important; }

/* Text - strong contrast */
html:not(.dark) .text-gray-100 { color: #1a202c !important; }
html:not(.dark) .text-gray-300 { color: #374151 !important; }
html:not(.dark) .text-gray-400 { color: #4b5563 !important; }
html:not(.dark) .text-gray-500 { color: #6b7280 !important; }
html:not(.dark) .text-white { color: #111827 !important; }

/* Borders & subtle bgs */
html:not(.dark) .border-white\/5 { border-color: rgba(0,0,0,0.1) !important; }
html:not(.dark) .bg-white\/5 { background: rgba(0,0,0,0.05) !important; }
html:not(.dark) .bg-white\/10 { background: rgba(0,0,0,0.07) !important; }

/* Gradient overlay on hero still dark for text readability */
html:not(.dark) .from-dark-950\/95 { --tw-gradient-from: rgba(15,29,48,0.92) !important; }
html:not(.dark) .via-dark-950\/70 { --tw-gradient-via: rgba(15,29,48,0.65) !important; }
html:not(.dark) .to-dark-950\/40 { --tw-gradient-to: rgba(15,29,48,0.35) !important; }

/* Hero text stays white on dark overlay */
html:not(.dark) #page-home section:first-child .text-white,
html:not(.dark) #page-home section:first-child h1,
html:not(.dark) #page-home section:first-child .text-gray-100 { color: #ffffff !important; }
html:not(.dark) #page-home section:first-child .text-gray-300 { color: #d1d5db !important; }
html:not(.dark) #page-home section:first-child .text-gray-400 { color: #9ca3af !important; }

/* CTA banner section stays dark */
html:not(.dark) .from-brand-800 { --tw-gradient-from: #1e3a5f !important; }
html:not(.dark) .to-brand-900 { --tw-gradient-to: #0f1d30 !important; }
html:not(.dark) section.bg-gradient-to-r.from-brand-800 .text-gray-300 { color: #d1d5db !important; }
html:not(.dark) section.bg-gradient-to-r.from-brand-800 h2 { color: #ffffff !important; }

/* Nav header bg in light */
html:not(.dark) .nav-item { color: #4b5563; }
html:not(.dark) .nav-item:hover,
html:not(.dark) .nav-item.active { color: #b45309; background: rgba(234,179,8,0.1); }
html:not(.dark) .mobile-nav-item { color: #4b5563; }
html:not(.dark) .mobile-nav-item:hover,
html:not(.dark) .mobile-nav-item.active { color: #b45309; background: rgba(234,179,8,0.1); }

/* Accent text on light stays readable */
html:not(.dark) .text-accent-400 { color: #b45309 !important; }
html:not(.dark) .text-green-400 { color: #15803d !important; }

/* Footer in light */
html:not(.dark) footer { background: #ffffff !important; }
html:not(.dark) footer .text-gray-400 { color: #6b7280 !important; }
html:not(.dark) footer .text-gray-500 { color: #9ca3af !important; }

/* Scrollbar light */
html:not(.dark) ::-webkit-scrollbar-track { background: #f0f4f8; }
html:not(.dark) ::-webkit-scrollbar-thumb { background: #cbd5e1; }
html:not(.dark) ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== NAV ITEMS ===== */
.nav-item {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
}
.nav-item:hover, .nav-item.active {
    color: #facc15;
    background: rgba(250,204,21,0.08);
}
.mobile-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
    color: #facc15;
    background: rgba(250,204,21,0.08);
}

/* ===== ANIMATIONS ===== */
.page-section {
    animation: fadeIn 0.4s ease;
}
.page-section.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}

.counter { transition: all 0.3s; }

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #facc15, #eab308);
    z-index: 100;
    transition: width 0.1s linear;
}

/* Service cards hover glow */
.service-card:hover {
    box-shadow: 0 0 30px rgba(250,204,21,0.06);
}
html:not(.dark) .service-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f1a; }
::-webkit-scrollbar-thumb { background: #2a2a40; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a55; }

/* Responsive tweaks */
@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
}
