/* ------------------------------------------------------------------
   Light theme
   The template is dark-first. This file remaps its surfaces, borders,
   navigation, form controls and major sections for a warm light mode,
   while keeping the hero/page-header photography dark for contrast.
------------------------------------------------------------------ */

html[data-theme='light'] {
  color-scheme: light;
  --light-bg: #f3efe8;
  --light-surface: #eae4da;
  --light-card: #fffdf9;
  --light-ink: #171513;
  --light-muted: #625b51;
  --light-line: rgba(23, 21, 19, 0.13);
  --light-accent: #cf3f20;
}

html[data-theme='light'] body,
html[data-theme='light'] .admin-body {
  background-color: var(--light-bg) !important;
  color: var(--light-ink);
}

html[data-theme='light'] .main-bg {
  background: var(--light-bg) !important;
}

html[data-theme='light'] .sub-bg {
  background: var(--light-surface) !important;
}

html[data-theme='light'] .sub-bg2 {
  background: var(--light-card) !important;
}

html[data-theme='light'] body,
html[data-theme='light'] h1,
html[data-theme='light'] h2,
html[data-theme='light'] h3,
html[data-theme='light'] h4,
html[data-theme='light'] h5,
html[data-theme='light'] h6 {
  color: var(--light-ink);
}

html[data-theme='light'] p,
html[data-theme='light'] .p-color,
html[data-theme='light'] .sec-head p {
  color: var(--light-muted);
}

html[data-theme='light'] .main-color {
  color: var(--light-accent) !important;
}

html[data-theme='light'] .sub-title {
  color: #746c60;
}

html[data-theme='light'] .sub-title.main-color {
  color: var(--light-accent) !important;
}

/* ---------------------------------------------------------------- */
/* Navigation                                                        */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .navbar {
  border-color: var(--light-line);
}

html[data-theme='light'] .navbar.nav-scroll,
html[data-theme='light'] .navbar.menu-open {
  background: rgba(243, 239, 232, 0.94) !important;
  border-color: var(--light-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html[data-theme='light'] .navbar.nav-floating {
  background: rgba(250, 247, 241, 0.8) !important;
  border-color: rgba(23, 21, 19, 0.14);
}

html[data-theme='light'] .navbar.nav-floating.menu-open {
  background: rgba(250, 247, 241, 0.98) !important;
}

html[data-theme='light'] .navbar.nav-scroll .nav-link,
html[data-theme='light'] .navbar.nav-floating .nav-link,
html[data-theme='light'] .navbar.menu-open .nav-link,
html[data-theme='light'] .navbar.nav-scroll .icon-bar,
html[data-theme='light'] .navbar.nav-floating .icon-bar,
html[data-theme='light'] .navbar.menu-open .icon-bar {
  color: var(--light-ink);
}

html[data-theme='light'] .navbar.nav-scroll .brand-mark,
html[data-theme='light'] .navbar.nav-floating .brand-mark,
html[data-theme='light'] .navbar.menu-open .brand-mark {
  color: var(--light-ink);
}

html[data-theme='light'] .navbar.nav-scroll .theme-toggle,
html[data-theme='light'] .navbar.nav-floating .theme-toggle,
html[data-theme='light'] .navbar.menu-open .theme-toggle {
  color: var(--light-ink);
  border-color: rgba(23, 21, 19, 0.18);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme='light'] .navbar .brand-wrap::after {
  border-color: var(--light-line);
}

html[data-theme='light'] .navbar .nav-cta {
  color: #0f0f0f;
}

html[data-theme='light'] .navbar .nav-cta:hover {
  background: var(--light-ink) !important;
  border-color: var(--light-ink);
  color: #fff !important;
}

html[data-theme='light'] .navbar .theme-toggle:hover {
  background: var(--light-ink);
  border-color: var(--light-ink);
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Hero — intentionally dark in both themes                          */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .header-personal,
html[data-theme='light'] .header-personal h1,
html[data-theme='light'] .header-personal h3,
html[data-theme='light'] .header-personal h6 {
  color: #fff;
}

html[data-theme='light'] .header-personal p,
html[data-theme='light'] .header-personal .p-color {
  color: #d6d2cb;
}

html[data-theme='light'] .header-personal .sub-title {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme='light'] .header-personal .main-color {
  color: #ff6844 !important;
}

html[data-theme='light'] .header-personal .info .item:after {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------------------------- */
/* Marquee                                                           */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .main-marq,
html[data-theme='light'] .main-marq.sub-bg {
  background: var(--light-surface) !important;
}

html[data-theme='light'] .main-marq .box .item h4,
html[data-theme='light'] .main-marq .box .item h4 a {
  -webkit-text-stroke-color: var(--light-ink);
}

html[data-theme='light'] .main-marq .box .item:nth-of-type(odd) h4 {
  color: var(--light-ink) !important;
  -webkit-text-stroke: 0 !important;
}

html[data-theme='light'] .main-marq .box .item:nth-of-type(even) h4 {
  color: transparent !important;
  -webkit-text-stroke: 0.5px var(--light-ink) !important;
}

html[data-theme='light'] .main-marq .box:last-of-type .item:nth-of-type(even) h4 {
  color: var(--light-ink) !important;
  -webkit-text-stroke: 0 !important;
}

html[data-theme='light'] .main-marq .box:last-of-type .item:nth-of-type(odd) h4 {
  color: transparent !important;
  -webkit-text-stroke: 1px var(--light-ink) !important;
}

html[data-theme='light'] .marq img,
html[data-theme='light'] .call-marq img {
  filter: invert(1) grayscale(1);
  opacity: 0.65;
}

html[data-theme='light'] .call-marq .main-marq.bord-item .item {
  border-color: rgba(23, 21, 19, 0.2);
}

/* ---------------------------------------------------------------- */
/* App cards                                                         */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .work-card .card-item {
  border-color: var(--light-line);
}

html[data-theme='light'] .work-card .card-item .cont .tag {
  border-color: var(--light-line);
  color: #514b43;
}

html[data-theme='light'] .app-card .app-tags .tag-placeholder {
  color: #746c60;
}

html[data-theme='light'] .app-card .app-coming {
  border-color: rgba(23, 21, 19, 0.15);
  color: #6e675d;
}

html[data-theme='light'] .app-count {
  color: #6e675d;
}

html[data-theme='light'] .sec-bottom:after {
  border-color: var(--light-line);
}

html[data-theme='light'] .sec-bottom .d-flex {
  border-color: var(--light-line);
  background: var(--light-bg);
}

html[data-theme='light'] .sec-bottom h6 {
  color: var(--light-ink);
}

/* App art stays dark so the icon and product preview retain contrast. */
html[data-theme='light'] .app-art {
  background-color: #0c0c0c;
}

/* ---------------------------------------------------------------- */
/* About                                                             */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .about-author .profile-img,
html[data-theme='light'] .about-author .profile-img .icon {
  border-color: rgba(23, 21, 19, 0.14);
}

html[data-theme='light'] .about-author .profile-img .icon {
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme='light'] .icon-img-40 img,
html[data-theme='light'] .about-author .numbers .icon-img-40 img {
  filter: invert(1);
  opacity: 0.7;
}

/* ---------------------------------------------------------------- */
/* Approach                                                          */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .my-skills .item .box-bord {
  border-color: var(--light-line);
  background: rgba(255, 253, 249, 0.55);
}

html[data-theme='light'] .approach .box-bord:hover {
  border-color: rgba(207, 63, 32, 0.5);
}

html[data-theme='light'] .principle-number {
  color: rgba(23, 21, 19, 0.42);
}

/* ---------------------------------------------------------------- */
/* Contact                                                           */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .my-skills::after {
  opacity: 0.04;
}

html[data-theme='light'] .contact .info-box {
  border-color: var(--light-line);
  background: rgba(255, 253, 249, 0.5);
}

html[data-theme='light'] .contact .info-box:after {
  opacity: 0.07;
  filter: invert(1);
}

html[data-theme='light'] .contact .form2 input,
html[data-theme='light'] .contact .form2 textarea,
html[data-theme='light'] .contact-form input,
html[data-theme='light'] .contact-form textarea {
  color: var(--light-ink);
  border-color: rgba(23, 21, 19, 0.16);
  background: rgba(255, 253, 249, 0.55);
}

html[data-theme='light'] .contact-form input::placeholder,
html[data-theme='light'] .contact-form textarea::placeholder {
  color: rgba(23, 21, 19, 0.4);
}

html[data-theme='light'] .contact-form .form-group label {
  color: #5c554b;
}

html[data-theme='light'] .contact-form input:focus,
html[data-theme='light'] .contact-form textarea:focus {
  border-color: var(--light-accent);
}

html[data-theme='light'] .contact-note {
  color: #7b7367;
}

html[data-theme='light'] .form-privacy {
  color: #857c70;
}

html[data-theme='light'] .field-error {
  color: #a83a22;
}

html[data-theme='light'] .form-status {
  border-color: var(--light-line);
  background: rgba(255, 253, 249, 0.7);
}

html[data-theme='light'] .form-success {
  border-color: #b9d6bf;
  background: #f1f8f2;
}

html[data-theme='light'] .form-error {
  border-color: #e0b6aa;
  background: #fff6f3;
}

html[data-theme='light'] .form-status strong {
  color: var(--light-ink);
}

html[data-theme='light'] .form-submit .butn.butn-bord {
  border-color: var(--light-ink);
  color: var(--light-ink);
}

html[data-theme='light'] .form-submit .butn.butn-bord:hover {
  background: var(--light-ink);
  color: #fffdf9;
}

html[data-theme='light'] .social-icon a {
  border-color: var(--light-line);
}

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .clean-footer {
  background: var(--light-bg);
}

html[data-theme='light'] footer.clean-footer.crev:after {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme='light'] .clean-footer .brand-mark,
html[data-theme='light'] .clean-footer .brand-mark:hover {
  color: var(--light-ink);
}

html[data-theme='light'] .navbar.nav-scroll .brand-mark:hover,
html[data-theme='light'] .navbar.nav-floating .brand-mark:hover,
html[data-theme='light'] .navbar.menu-open .brand-mark:hover {
  color: var(--light-ink);
}

html[data-theme='light'] .footer-location {
  color: #6e675d;
}

html[data-theme='light'] .footer-legal-links a,
html[data-theme='light'] .footer-legal-links {
  color: #6e675d;
}

html[data-theme='light'] .legal-sep {
  color: rgba(23, 21, 19, 0.3);
}

html[data-theme='light'] .bord-thin-top,
html[data-theme='light'] .bord-thin-bottom {
  border-color: var(--light-line) !important;
}

html[data-theme='light'] .footer-location .status-dot {
  background: var(--light-accent);
}

html[data-theme='light'] .footer-legal .p-color {
  color: #746c60 !important;
}

/* ---------------------------------------------------------------- */
/* Interior page headers                                             */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .page-header {
  color: #fff;
}

html[data-theme='light'] .page-header h1,
html[data-theme='light'] .page-header p,
html[data-theme='light'] .page-header .sub-title {
  color: #fff;
}

html[data-theme='light'] .page-header .sub-title.main-color {
  color: #ff6844 !important;
}

html[data-theme='light'] .page-header .legal-updated {
  color: rgba(255, 255, 255, 0.6);
}

html[data-theme='light'] .page-header:after {
  background: linear-gradient(transparent, var(--light-bg));
}

html[data-theme='light'] .app-soon-icon {
  border-color: var(--light-line);
  background: radial-gradient(
    circle,
    rgba(207, 63, 32, 0.08) 0%,
    transparent 68%
  );
}

html[data-theme='light'] .app-soon-meta {
  border-color: var(--light-line);
}

html[data-theme='light'] .app-soon-meta span {
  color: #746c60;
}

html[data-theme='light'] .app-soon-body .butn.butn-bord {
  border-color: var(--light-ink);
  color: var(--light-ink);
}

html[data-theme='light'] .app-soon-body .butn.butn-bord:hover {
  background: var(--light-ink);
  color: #fffdf9;
}

html[data-theme='light'] .app-soon-feedback .main-color {
  color: var(--light-accent) !important;
}

/* ---------------------------------------------------------------- */
/* Utilities                                                         */
/* ---------------------------------------------------------------- */

html[data-theme='light'] .loader-wrap svg {
  fill: var(--light-bg);
}

html[data-theme='light'] .loader-wrap .load-text {
  color: var(--light-ink);
}

html[data-theme='light'] .cursor {
  background-color: var(--light-ink);
}

html[data-theme='light'] .progress-wrap::after {
  color: #514b43;
}

html[data-theme='light'] .progress-wrap svg.progress-circle path {
  stroke: #514b43;
}

html[data-theme='light'] ::-webkit-scrollbar-track {
  background: #e7e0d5;
}

html[data-theme='light'] ::-webkit-scrollbar-thumb {
  background: #a89d8e;
}

html[data-theme='light'] .form2 input:-webkit-autofill,
html[data-theme='light'] .form2 textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--light-ink);
  box-shadow: 0 0 0 1000px #fffdf9 inset;
}
