/* =========================================================
   AINEXO P7 — Light Mode Premium Polish (additive)
   Dark mode unchanged. Crystal-clear contrast, cards, nav.
   ========================================================= */
[data-theme="light"]{
  --text:#141414 !important;
  --muted:#2e2e2e !important;
  --faint:rgba(20,20,20,.72) !important;
  --bg:#faf8f5 !important;
  --bg-2:#f3eee6 !important;
  --bg-3:#ffffff !important;
  --card:#ffffff !important;
  --card-strong:#ffffff !important;
  --border:rgba(20,20,20,.16) !important;
  --border-strong:rgba(200,155,60,.42) !important;
  --shadow-card:0 18px 44px -20px rgba(20,20,20,.28) !important;
  --input-bg:#ffffff !important;
  color-scheme:light;
}
[data-theme="light"] body{
  color:var(--text);
  background:var(--bg);
}
[data-theme="light"] .site-header{
  background:rgba(250,248,245,.97) !important;
  border-bottom:1px solid rgba(20,20,20,.12) !important;
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 8px 28px rgba(20,20,20,.06);
}
[data-theme="light"] .site-header.scrolled .nav,
[data-theme="light"] .site-header .nav{
  background:rgba(255,255,255,.92) !important;
  border:1px solid rgba(20,20,20,.1) !important;
  box-shadow:0 12px 32px rgba(20,20,20,.1) !important;
}
[data-theme="light"] .site-header .brand-name{
  background:linear-gradient(120deg,#7a2323 0%,#c89b3c 55%,#9f2d2d 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
  color:#9f2d2d !important;
  opacity:1 !important;
  visibility:visible !important;
  font-weight:800 !important;
}
[data-theme="light"] .site-header .brand-dot{
  -webkit-text-fill-color:#c89b3c !important;
  color:#c89b3c !important;
}
[data-theme="light"] .site-header .nav-links a,
[data-theme="light"] .site-header .nav-trigger,
[data-theme="light"] .site-header .nav-contact-label,
[data-theme="light"] .site-header .nav-portal-label,
[data-theme="light"] .site-header .nav-quote-label,
[data-theme="light"] .site-header .nav-home-label,
[data-theme="light"] .site-header .nav-chrome-label{
  color:#141414 !important;
  -webkit-text-fill-color:unset !important;
  opacity:1 !important;
  visibility:visible !important;
  font-weight:650;
}
[data-theme="light"] .site-header .nav-links a:hover,
[data-theme="light"] .site-header .nav-links a.active,
[data-theme="light"] .site-header .nav-trigger.active,
[data-theme="light"] .site-header .nav-trigger:hover,
[data-theme="light"] .site-header .nav-home-btn.active,
[data-theme="light"] .site-header .nav-home-btn:hover{
  color:#9f2d2d !important;
}
[data-theme="light"] .site-header .icon-btn,
[data-theme="light"] .site-header .nav-toggle{
  color:#141414 !important;
  border:1px solid rgba(200,155,60,.7) !important;
  background:linear-gradient(145deg,#ffffff,#f0ebe3) !important;
  box-shadow:0 6px 16px rgba(20,20,20,.14) !important;
  opacity:1 !important;
  visibility:visible !important;
}
[data-theme="light"] .site-header .icon-btn i,
[data-theme="light"] .site-header .nav-toggle i,
[data-theme="light"] .site-header .nav-trigger i,
[data-theme="light"] .site-header .btn i,
[data-theme="light"] .site-header .nav-home-btn i,
[data-theme="light"] .site-header .nav-projects-btn i{
  color:inherit !important;
  opacity:1 !important;
  visibility:visible !important;
}
[data-theme="light"] .site-header .icon-btn:hover,
[data-theme="light"] .site-header .nav-toggle:hover{
  color:#9f2d2d !important;
  border-color:rgba(159,45,45,.55) !important;
}
[data-theme="light"] .btn-ghost,
[data-theme="light"] .nav-contact-btn,
[data-theme="light"] .nav-portal-btn,
[data-theme="light"] .nav-home-btn,
[data-theme="light"] .nav-projects-btn,
[data-theme="light"] .nav-chrome-text-btn{
  color:#141414 !important;
  border:1px solid rgba(20,20,20,.2) !important;
  background:rgba(255,255,255,.96) !important;
  box-shadow:0 4px 14px rgba(20,20,20,.08) !important;
  opacity:1 !important;
  visibility:visible !important;
  font-weight:650;
}
[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .nav-contact-btn:hover,
[data-theme="light"] .nav-portal-btn:hover,
[data-theme="light"] .nav-home-btn:hover,
[data-theme="light"] .nav-projects-btn:hover,
[data-theme="light"] .nav-chrome-text-btn:hover,
[data-theme="light"] .nav-chrome-dd.open .nav-chrome-text-btn{
  color:#9f2d2d !important;
  border-color:rgba(200,155,60,.65) !important;
  background:#fff !important;
}
[data-theme="light"] .btn-primary,
[data-theme="light"] .nav-quote-btn{
  color:#fff !important;
  background:linear-gradient(135deg,#9f2d2d,#7a2323) !important;
  border:1px solid rgba(122,35,35,.4) !important;
  box-shadow:0 8px 22px rgba(159,45,45,.28) !important;
  opacity:1 !important;
  visibility:visible !important;
  font-weight:700;
}
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .nav-quote-btn:hover{
  background:linear-gradient(135deg,#b33636,#9f2d2d) !important;
  box-shadow:0 12px 28px rgba(159,45,45,.34) !important;
}
[data-theme="light"] .nav-dropdown,
[data-theme="light"] .nav-chrome-menu{
  background:rgba(255,255,255,.99) !important;
  border:1px solid rgba(20,20,20,.12) !important;
  color:#141414 !important;
  box-shadow:0 22px 48px rgba(20,20,20,.2) !important;
}
[data-theme="light"] .nav-dropdown a,
[data-theme="light"] .nav-chrome-menu a{
  color:#141414 !important;
  font-weight:550;
}
[data-theme="light"] .nav-dropdown a:hover,
[data-theme="light"] .nav-chrome-menu a:hover,
[data-theme="light"] .nav-dropdown a.active,
[data-theme="light"] .nav-chrome-menu a.active{
  color:#9f2d2d !important;
  background:rgba(200,155,60,.12) !important;
}
[data-theme="light"] .ainexo-lang-switch,
[data-theme="light"] .ainexo-lang-switch button,
[data-theme="light"] .ainexo-lang-switch select{
  color:#141414 !important;
  border-color:rgba(200,155,60,.55) !important;
  background:#fff !important;
  opacity:1 !important;
  visibility:visible !important;
  font-weight:650;
}

/* ---------- Mobile drawer ---------- */
[data-theme="light"] .mobile-drawer .drawer-panel{
  background:rgba(255,255,255,.99) !important;
  color:#141414 !important;
  border-left:1px solid rgba(200,155,60,.35) !important;
  box-shadow:-18px 0 48px rgba(20,20,20,.18);
}
[data-theme="light"] .mobile-drawer .drawer-links a,
[data-theme="light"] .mobile-drawer .drawer-title,
[data-theme="light"] .drawer-close,
[data-theme="light"] .drawer-theme-btn,
[data-theme="light"] .drawer-section-title{
  color:#141414 !important;
  border-color:rgba(20,20,20,.14) !important;
  opacity:1 !important;
  visibility:visible !important;
}
[data-theme="light"] .mobile-drawer .drawer-links a{
  background:#fff !important;
  box-shadow:0 4px 12px rgba(20,20,20,.06);
  font-weight:600;
}
[data-theme="light"] .mobile-drawer .drawer-links a:hover,
[data-theme="light"] .mobile-drawer .drawer-links a.active{
  color:#9f2d2d !important;
  border-color:rgba(200,155,60,.55) !important;
  background:#faf8f5 !important;
}
[data-theme="light"] .drawer-theme-btn{
  background:#fff !important;
  border:1px solid rgba(200,155,60,.55) !important;
  font-weight:650;
}

/* ---------- Search / command palette ---------- */
[data-theme="light"] .cmd-palette,
[data-theme="light"] #cmdPalette,
[data-theme="light"] .command-palette{
  background:#fff !important;
  color:#141414 !important;
  border:1px solid rgba(20,20,20,.12) !important;
  box-shadow:0 28px 64px rgba(20,20,20,.22) !important;
}
[data-theme="light"] .cmd-palette input,
[data-theme="light"] #cmdInput{
  color:#141414 !important;
  background:#faf8f5 !important;
  border:1px solid rgba(20,20,20,.18) !important;
  font-weight:550;
}
[data-theme="light"] .cmd-palette li,
[data-theme="light"] .cmd-item,
[data-theme="light"] #cmdList button,
[data-theme="light"] #cmdList a{
  color:#141414 !important;
}
[data-theme="light"] .cmd-palette li:hover,
[data-theme="light"] .cmd-item:hover,
[data-theme="light"] #cmdList [aria-selected="true"]{
  color:#9f2d2d !important;
  background:rgba(200,155,60,.12) !important;
}

/* ---------- Typography ---------- */
[data-theme="light"] .section-title,
[data-theme="light"] .page-hero h1,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4{
  color:#121212 !important;
  -webkit-text-fill-color:unset;
  opacity:1 !important;
}
[data-theme="light"] .section-sub,
[data-theme="light"] .hero-desc,
[data-theme="light"] .card p,
[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] .lead,
[data-theme="light"] .muted{
  color:#2e2e2e !important;
  opacity:1;
}
[data-theme="light"] .gradient-text{
  background:linear-gradient(120deg,#7a2323 0%,#c89b3c 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
[data-theme="light"] .eyebrow{color:#9f2d2d !important;-webkit-text-fill-color:unset;font-weight:700}

/* ---------- Cards / glass ---------- */
[data-theme="light"] .glass,
[data-theme="light"] .card.glass,
[data-theme="light"] .stat.glass,
[data-theme="light"] .service-card.glass,
[data-theme="light"] .project-card.glass,
[data-theme="light"] .blog-card.glass,
[data-theme="light"] .blog-card,
[data-theme="light"] .faq-list details,
[data-theme="light"] .quote-form.glass{
  background:rgba(255,255,255,.98) !important;
  border:1px solid rgba(20,20,20,.12) !important;
  color:#141414 !important;
  box-shadow:0 16px 40px -18px rgba(20,20,20,.22) !important;
}
[data-theme="light"] .glass:hover,
[data-theme="light"] .card.glass:hover,
[data-theme="light"] .service-card.glass:hover,
[data-theme="light"] .project-card.glass:hover,
[data-theme="light"] .blog-card:hover{
  border-color:rgba(200,155,60,.45) !important;
  box-shadow:0 22px 48px -20px rgba(20,20,20,.28),0 0 0 1px rgba(200,155,60,.28) !important;
  transform:translateY(-2px);
}

/* ---------- Blog ---------- */
[data-theme="light"] .blog-card .blog-body h3,
[data-theme="light"] .blog-card h3,
[data-theme="light"] .blog-title,
[data-theme="light"] article h2 a,
[data-theme="light"] .post-card h3,
[data-theme="light"] .post-card h2{
  color:#121212 !important;
  font-weight:750 !important;
  opacity:1 !important;
  -webkit-text-fill-color:unset !important;
}
[data-theme="light"] .blog-card .blog-body p,
[data-theme="light"] .blog-card p,
[data-theme="light"] .post-card p{
  color:#2e2e2e !important;
}
[data-theme="light"] .blog-meta,
[data-theme="light"] .blog-card .blog-meta,
[data-theme="light"] .post-meta{
  color:#3a3a3a !important;
  opacity:1 !important;
  font-weight:550;
}
[data-theme="light"] .read-more{
  color:#9f2d2d !important;
  font-weight:700 !important;
}
[data-theme="light"] .blog-thumb{
  background:linear-gradient(145deg,#1b1b1b,#2c2c2c) !important;
  color:#f5edd9 !important;
}

/* ---------- Project / portfolio cards ---------- */
[data-theme="light"] .project-card h3,
[data-theme="light"] .project-card .project-title,
[data-theme="light"] .portfolio-card h3{
  color:#121212 !important;
  font-weight:750 !important;
}
[data-theme="light"] .project-card p,
[data-theme="light"] .project-card .project-desc{
  color:#2e2e2e !important;
}
[data-theme="light"] .project-card .tag,
[data-theme="light"] .chip,
[data-theme="light"] .badge{
  color:#141414 !important;
  background:#f3eee6 !important;
  border:1px solid rgba(20,20,20,.12) !important;
}

/* Cinematic overlays stay light-on-dark art */
[data-theme="light"] .ainexo-cine-body,
[data-theme="light"] .ainexo-cine-body h3,
[data-theme="light"] .ainexo-cine-cat{color:#f5f5f5 !important}

/* ---------- Forms ---------- */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .form-control{
  color:#141414 !important;
  background:#fff !important;
  border:1px solid rgba(20,20,20,.2) !important;
  box-shadow:inset 0 1px 2px rgba(20,20,20,.04);
}
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus{
  border-color:rgba(200,155,60,.7) !important;
  outline:2px solid rgba(159,45,45,.25);
  outline-offset:1px;
}
[data-theme="light"] ::placeholder{color:rgba(20,20,20,.5) !important}
[data-theme="light"] label{color:#141414 !important;font-weight:650}

/* ---------- Filters / icons ---------- */
[data-theme="light"] .filter-btn{
  color:#141414 !important;
  background:#fff !important;
  border:1px solid rgba(20,20,20,.16) !important;
  font-weight:650;
  box-shadow:0 4px 12px rgba(20,20,20,.06);
}
[data-theme="light"] .filter-btn:hover{
  color:#9f2d2d !important;
  border-color:rgba(200,155,60,.55) !important;
}
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .filter-btn[aria-pressed="true"]{
  color:#fff !important;
  background:linear-gradient(135deg,#9f2d2d,#7a2323) !important;
  border-color:transparent !important;
}
[data-theme="light"] .fa-solid,
[data-theme="light"] .fa-brands,
[data-theme="light"] .fa-regular,
[data-theme="light"] .float-icon{
  opacity:1 !important;
}
[data-theme="light"] .service-card i,
[data-theme="light"] .card .icon,
[data-theme="light"] .feature-icon,
[data-theme="light"] .stat i{
  color:#9f2d2d !important;
  opacity:1 !important;
}

/* ---------- Footer ---------- */
[data-theme="light"] .site-footer,
[data-theme="light"] .site-footer a,
[data-theme="light"] .footer a,
[data-theme="light"] .footer-subhead{
  color:#141414 !important;
  opacity:1 !important;
}
[data-theme="light"] .site-footer a:hover,
[data-theme="light"] .footer a:hover{color:#9f2d2d !important}
[data-theme="light"] .site-footer{
  border-top:1px solid rgba(20,20,20,.12);
  background:linear-gradient(180deg,#faf8f5,#f3eee6);
}
[data-theme="light"] .bottom-nav{
  background:rgba(255,255,255,.97) !important;
  border-top:1px solid rgba(20,20,20,.12) !important;
  box-shadow:0 -8px 24px rgba(20,20,20,.08);
}
[data-theme="light"] .bottom-nav-item{color:#2e2e2e !important;font-weight:650}
[data-theme="light"] .bottom-nav-item.active{color:#9f2d2d !important}

/* ---------- Home hero stays light-on-dark over 3D ---------- */
[data-theme="light"] #home .hero-name{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background:none !important;
}
[data-theme="light"] #home .hero-desc,
[data-theme="light"] #home .hero-seo-line,
[data-theme="light"] #home .hero-typed-wrap{
  color:rgba(255,255,255,.94) !important;
  -webkit-text-fill-color:unset;
}
