:root {
    --theme-obsidian-rgb: 5 5 7;
    --theme-accent-rgb: 0 245 255;
    --theme-text: #cbd5e1;
    --theme-heading: #ffffff;
    --theme-panel-bg: rgba(5, 5, 7, 0.9);
    --theme-shadow-glow: rgba(0, 245, 255, 0.22);
}

html[data-theme="light"] {
    --theme-obsidian-rgb: 255 255 255;
    --theme-accent-rgb: 184 72 29;
    --theme-text: #3b3028;
    --theme-heading: #2b241e;
    --theme-panel-bg: rgba(255, 255, 255, 0.94);
    --theme-shadow-glow: rgba(184, 72, 29, 0.2);
}

html,
body {
    background-color: rgb(var(--theme-obsidian-rgb));
    color: var(--theme-text);
}

html[data-theme="light"] .bg-obsidian {
    background-color: rgb(var(--theme-obsidian-rgb)) !important;
}

html[data-theme="light"] .bg-obsidian\/80 {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .from-obsidian {
    --tw-gradient-from: rgba(255, 255, 255, 0.98) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position) !important;
}

html[data-theme="light"] .via-obsidian {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(255, 252, 249, 0.98), var(--tw-gradient-to) !important;
}

html[data-theme="light"] .to-black {
    --tw-gradient-to: rgba(255, 248, 242, 1) var(--tw-gradient-to-position) !important;
}

html[data-theme="light"] .text-white {
    color: #2f261f !important;
}

html[data-theme="light"] .text-obsidian {
    color: #2f261f !important;
}

html[data-theme="light"] .text-slate-500 {
    color: #7b6658 !important;
}

html[data-theme="light"] .text-slate-400 {
    color: #675347 !important;
}

html[data-theme="light"] .text-slate-300 {
    color: #4f4036 !important;
}

html[data-theme="light"] .text-slate-600 {
    color: #8a7567 !important;
}

html[data-theme="light"] .border-white\/10,
html[data-theme="light"] .border-white\/5 {
    border-color: rgba(184, 72, 29, 0.2) !important;
}

html[data-theme="light"] .text-electric-cyan {
    color: rgb(var(--theme-accent-rgb) / 1) !important;
}

html[data-theme="light"] .bg-electric-cyan {
    background-color: rgb(var(--theme-accent-rgb) / 1) !important;
    color: #fff8f3 !important;
}

html[data-theme="light"] .bg-electric-cyan .text-obsidian {
    color: #fff8f3 !important;
}

html[data-theme="light"] .hover\:bg-electric-cyan:hover {
    background: linear-gradient(135deg, rgb(var(--theme-accent-rgb) / 1), #9f3f1f) !important;
    color: #fff8f3 !important;
    border-color: transparent !important;
}

html[data-theme="light"] .hover\:bg-electric-cyan:hover .text-obsidian {
    color: #fff8f3 !important;
}

html[data-theme="light"] .hover\:bg-electric-cyan\/90:hover {
    background-color: rgb(var(--theme-accent-rgb) / 0.9) !important;
    color: #fff8f3 !important;
}

html[data-theme="light"] .glass-strong {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(255, 241, 246, 0.8)) !important;
    border-color: rgba(184, 72, 29, 0.24) !important;
    box-shadow: 0 18px 52px rgba(184, 72, 29, 0.14);
}

html[data-theme="light"] .glass-strong::after {
    border-top-color: rgba(184, 72, 29, 0.28) !important;
}

html[data-theme="light"] .glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 238, 228, 0.68)) !important;
    border-color: rgba(184, 72, 29, 0.22) !important;
    box-shadow: 0 14px 34px rgba(184, 72, 29, 0.12);
}

html[data-theme="light"] .glass-card:hover {
    border-color: rgba(184, 72, 29, 0.34) !important;
    box-shadow: 0 20px 42px rgba(184, 72, 29, 0.18);
}

html[data-theme="light"] .glow-border {
    box-shadow: 0 0 18px rgba(184, 72, 29, 0.14), inset 0 0 4px rgba(184, 72, 29, 0.06) !important;
}

html[data-theme="light"] .header-container .megamenu-backdrop {
    background-color: rgba(255, 252, 247, 0.78) !important;
}

html[data-theme="light"] .mobile-nav-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(255, 245, 238, 0.95)) !important;
}

html[data-theme="light"] .mobile-nav-panel .text-slate-300 {
    color: #534237 !important;
}

html[data-theme="light"] .mobile-nav-panel .text-slate-500 {
    color: #6e5b4e !important;
}

html[data-theme="light"] .mobile-nav-panel a.hover\:text-white:hover,
html[data-theme="light"] .mobile-nav-panel .hover\:text-white:hover {
    color: rgb(var(--theme-accent-rgb) / 1) !important;
}

html[data-theme="light"] footer.bg-obsidian {
    background:
        radial-gradient(75% 60% at 12% 18%, rgba(184, 72, 29, 0.11), transparent 72%),
        radial-gradient(65% 55% at 88% 82%, rgba(184, 72, 29, 0.09), transparent 76%),
        linear-gradient(180deg, rgba(255, 249, 244, 0.98), rgba(255, 239, 229, 0.94)) !important;
    border-top-color: rgba(184, 72, 29, 0.25) !important;
}

html[data-theme="light"] footer .hover\:text-white:hover {
    color: rgb(var(--theme-accent-rgb) / 1) !important;
}

html[data-theme="light"] [class*="shadow-[0_0_15px_rgba(0,245,255"],
html[data-theme="light"] [class*="shadow-[0_0_20px_rgba(0,245,255"],
html[data-theme="light"] [class*="shadow-[0_0_30px_rgba(0,245,255"] {
    box-shadow: 0 0 24px var(--theme-shadow-glow) !important;
}

.theme-toggle-btn {
    position: relative;
    width: 3.2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(180deg, #10172a 0%, #060a16 100%);
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.theme-toggle-btn:hover {
    border-color: rgba(0, 245, 255, 0.55);
    box-shadow: 0 0 18px rgba(0, 245, 255, 0.24);
}

.theme-toggle-clouds {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 84%, rgba(255, 255, 255, 0.95) 0 16%, transparent 17%),
        radial-gradient(circle at 40% 81%, rgba(255, 255, 255, 0.92) 0 14%, transparent 15%),
        radial-gradient(circle at 61% 83%, rgba(255, 255, 255, 0.88) 0 12%, transparent 13%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.8) 0 10%, transparent 11%),
        linear-gradient(180deg, rgba(117, 191, 238, 0.5), rgba(183, 221, 246, 0.2));
    opacity: 0;
    transition: opacity 0.32s ease;
}

.theme-toggle-stars {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: opacity 0.32s ease;
}

.theme-toggle-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
}

.theme-toggle-stars span:nth-child(1) {
    top: 6px;
    left: 9px;
}

.theme-toggle-stars span:nth-child(2) {
    top: 12px;
    left: 15px;
}

.theme-toggle-stars span:nth-child(3) {
    top: 5px;
    right: 10px;
}

.theme-toggle-stars span:nth-child(4) {
    top: 13px;
    right: 16px;
}

.theme-toggle-sun-icon,
.theme-toggle-moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.theme-toggle-sun-icon {
    left: 0.28rem;
    color: rgba(255, 217, 90, 0.92);
    opacity: 0.2;
}

.theme-toggle-moon-icon {
    right: 0.28rem;
    color: rgba(216, 227, 252, 0.92);
    opacity: 1;
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 9999px;
    background: #d7deea;
    box-shadow: inset -4px -4px 0 rgba(171, 183, 203, 0.45), 0 2px 7px rgba(0, 0, 0, 0.3);
    transform: translateX(1.56rem);
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.theme-toggle-thumb::before,
.theme-toggle-thumb::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    background: rgba(160, 173, 194, 0.65);
}

.theme-toggle-thumb::before {
    width: 0.24rem;
    height: 0.24rem;
    top: 0.3rem;
    left: 0.2rem;
}

.theme-toggle-thumb::after {
    width: 0.16rem;
    height: 0.16rem;
    top: 0.68rem;
    left: 0.62rem;
}

html[data-theme="light"] .theme-toggle-btn {
    background: linear-gradient(180deg, #79bbea 0%, #c4e4f9 100%);
    border-color: rgba(113, 147, 177, 0.5);
    box-shadow: inset 0 -4px 14px rgba(255, 255, 255, 0.38);
}

html[data-theme="light"] .theme-toggle-btn:hover {
    border-color: rgba(184, 72, 29, 0.5);
    box-shadow: 0 0 18px rgba(184, 72, 29, 0.2);
}

html[data-theme="light"] .theme-toggle-clouds {
    opacity: 1;
}

html[data-theme="light"] .theme-toggle-stars {
    opacity: 0;
}

html[data-theme="light"] .theme-toggle-sun-icon {
    opacity: 1;
}

html[data-theme="light"] .theme-toggle-moon-icon {
    color: rgba(48, 63, 85, 0.95);
    opacity: 1;
}

html[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(0);
    background: #f8ce3e;
    box-shadow: inset -5px -5px 0 rgba(232, 174, 24, 0.32), 0 3px 8px rgba(198, 140, 31, 0.35);
}

html[data-theme="light"] .theme-toggle-thumb::before,
html[data-theme="light"] .theme-toggle-thumb::after {
    display: none;
}