/* =========================================================
   yujesh.com theme overrides
   Fonts:  Sora (headings) · Inter (body) · Mukta (Devanagari)
   Palette: inspired by Patan – warm charcoal, temple brass, terracotta brick
   Loaded after app.css so these rules win.
   ========================================================= */
:root {
   --bg:          #0f0e0d;   /* warm near-black */
   --surface:     #181614;   /* cards */
   --surface-2:   #211e1b;   /* raised cards */
   --surface-3:   #12110f;
   --ink:         #f4efe7;   /* primary text (warm white) */
   --ink-soft:    #c9c1b5;   /* body text */
   --muted:       #8e857a;   /* secondary text */
   --line:        rgba(244, 239, 231, .14);
   --brass:       #d9a441;   /* primary accent */
   --brass-deep:  #b8862a;
   --terracotta:  #c65d3b;   /* secondary accent */

   --font-head: 'Sora', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
   --font-body: 'Inter', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
   --font-ne:   'Mukta', 'Inter', sans-serif;
}

/* ---------- Base ---------- */
body {
   font-family: var(--font-body);
   background: var(--bg);
   color: var(--ink);
   text-rendering: optimizeLegibility;
}
p, li, a, button, input, textarea {
   font-family: var(--font-body);
}
p {
   color: var(--ink-soft);
   line-height: 1.6em;
   letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
   font-family: var(--font-head);
   color: var(--ink);
   letter-spacing: -0.02em;
}
h1 { font-weight: 600; }
h2 { font-weight: 300; }
h3 { font-weight: 500; }
h5 { font-weight: 500; }
strong { color: var(--ink); font-weight: 600; }

[lang="ne"], [lang="ne"] * {
   font-family: var(--font-ne) !important;
   letter-spacing: 0 !important;
}

.color-white { color: var(--ink); }

::selection      { background: var(--brass); color: #111; }
::-moz-selection { background: var(--brass); color: #111; }

/* ---------- Section labels & dividers ---------- */
p.tag {
   color: var(--brass);
   letter-spacing: .18em;
   text-transform: uppercase;
   font-weight: 600;
}
.seperator-line {
   background: linear-gradient(90deg, var(--brass), var(--terracotta));
}

/* Intro subtitle */
#intro h2 {
   color: var(--ink-soft);
   font-size: 4.2rem;
   line-height: 1.3em;
   max-width: 22em;
}

/* ---------- Loading screen ---------- */
.loading-screen { background: var(--bg); }
.loading-screen .line { background: var(--brass); }
.loading-screen h3 { font-family: var(--font-head); }

/* ---------- Left portrait frames ---------- */
.left-content .inner-content .frame { border-color: rgba(217, 164, 65, .55); }

/* ---------- Cards / surfaces (override inline colours) ---------- */
.card,
.resume .item,
.skill-bar .bar .number-tag { background: var(--surface); }
.card-grid .item { background: var(--surface) !important; border: 1px solid var(--line); }
.card-grid .item h2 { color: var(--brass); font-weight: 500; }
.pricing-item { background: var(--surface) !important; border: 1px solid var(--line); }
.resume .item p.small { color: var(--brass); font-weight: 600; }

/* ---------- Skill bars ---------- */
.skill-bar .bar { background: rgba(244, 239, 231, .12); }
.skill-bar .bar .fill { background: linear-gradient(90deg, var(--brass-deep), var(--brass)); }

/* ---------- Accordions ---------- */
.accordion-item h5 { color: var(--ink); }
.accordion-item.is-active h5,
.accordion-item:hover h5 { color: var(--brass); }

/* ---------- Buttons ---------- */
.default-button .icon-button { background: var(--brass); }
.default-button .icon-button .icon { color: #111; }
.default-button:hover .icon-button { background: var(--terracotta); }
.default-button:hover .icon-button .icon { color: #fff; }

/* ---------- Spotlight / work grid ---------- */
.work-grid .item .cover::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(15, 14, 13, 0) 45%, rgba(15, 14, 13, .85) 100%);
}
.work-grid .item .info p { font-family: var(--font-head); font-weight: 500; }
.glightbox-container .info-container h3 { font-family: var(--font-head); }
.glightbox-container .info-container p { color: var(--ink-soft); }

/* ---------- Publications ---------- */
.testimonial-carousel .item .quote { font-family: var(--font-head); font-weight: 300; }
.testimonial-carousel a:hover .quote { color: var(--brass); }

/* ---------- Menu & cursor accent ---------- */
.m-menu .m-menu-inner .main-items li:hover p,
.m-menu .m-menu-inner .main-items a.is-active p,
.m-menu .m-menu-inner .main-items li:hover span,
.m-menu .m-menu-inner .social-items a:hover span,
.glightbox-container .gbtn:hover span { color: var(--brass) !important; }
.m-menu-button:hover .burger .line { background: var(--brass) !important; }
.c_cursor_inner { background: var(--brass) !important; }
.c_cursor_outer .bg,
.c_cursor_outer .circle { border-color: var(--brass) !important; }

/* ---------- Contact card links ---------- */
#contact a span { color: var(--ink); transition: color .2s; }
#contact a:hover span { color: var(--brass); }

/* =========================================================
   Component fixes
   ========================================================= */

/* ---------- Milestone cards ---------- */
.card-grid .item { overflow: hidden; transition: border-color .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.card-grid .item .item-container {
   left: 0; top: auto; bottom: 0;
   transform: none;
   width: 100%;
   padding: 0 3.5rem 3.5rem;
   box-sizing: border-box;
}
.card-grid .item .card-icon {
   display: inline-flex; align-items: center; justify-content: center;
   width: 5.6rem; height: 5.6rem;
   border-radius: 50%;
   border: 1px solid rgba(217,164,65,.45);
   color: var(--brass);
   font-size: 2.2rem;
   margin-bottom: 2.4rem;
   transition: background .35s ease, color .35s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.card-grid .item h2 { font-family: var(--font-head); font-size: 7rem; line-height: 1; margin: 0 0 1rem; }
.card-grid .item p { font-size: 2rem; line-height: 1.35em; color: var(--ink-soft); }
.card-grid .item::before {
   content: ""; position: absolute; inset: 0;
   background: radial-gradient(circle at 80% 0%, rgba(217,164,65,.14), transparent 60%);
   opacity: 0; transition: opacity .45s ease;
}
.card-grid .item:hover { border-color: rgba(217,164,65,.5); }
.card-grid .item:hover::before { opacity: 1; }
.card-grid .item:hover .card-icon { background: var(--brass); color: #111; transform: rotate(-8deg) scale(1.06); }

/* ---------- Academic cards ---------- */
.pricing-item .price { flex-direction: column; align-items: flex-start; }
.pricing-item .price h2 { font-size: 4.6rem; font-weight: 400; margin-left: 0 !important; line-height: 1.15; }
.pricing-item .price p { margin-left: 0 !important; margin-top: .8rem; font-size: 1.9rem; color: var(--brass); letter-spacing: .02em; }
.pricing-item .head p.small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 1.4rem; font-weight: 500; }
.pricing-item { transition: border-color .35s ease; }
.pricing-item:hover { border-color: rgba(217,164,65,.45); }

/* ---------- Skill bars ---------- */
.skill-bar .head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.skill-bar .skill-pct { font-family: var(--font-head); color: var(--brass); font-size: 2.2rem; font-weight: 500; white-space: nowrap; }
.skill-bar .bar { height: .4rem; border-radius: 1rem; overflow: hidden; margin-bottom: 1.2rem; }
.skill-bar .bar .fill { border-radius: 1rem; }
.skill-bar .bar .number-tag { display: none; }

/* ---------- Resume timeline ---------- */
.resume .item { border: 1px solid transparent; transition: border-color .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.resume .item:hover { border-color: rgba(217,164,65,.35); transform: translateX(.8rem); }

/* ---------- Publication ---------- */
.testimonial-carousel .item .name { color: var(--ink); }
.testimonial-carousel .item .role { color: var(--muted); }

/* ---------- Contact ---------- */
.card .inner p.small { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 1.3rem; font-weight: 500; }
.contact-link {
   color: var(--ink);
   text-decoration: none;
   background-image: linear-gradient(var(--brass), var(--brass));
   background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
   transition: background-size .4s cubic-bezier(.2,.7,.2,1), color .3s ease;
}
.contact-link:hover { color: var(--brass); background-size: 100% 1px; }
#contact .card a span[class*="ti-"] {
   display: inline-flex; align-items: center; justify-content: center;
   width: 5.2rem; height: 5.2rem; border-radius: 50%;
   border: 1px solid var(--line);
   font-size: 2rem; margin-left: 0 !important; margin-right: 1.2rem;
   transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
#contact .card a:hover span[class*="ti-"] { background: var(--brass); border-color: var(--brass); color: #111; transform: translateY(-.3rem); }

/* =========================================================
   Micro-interactions
   ========================================================= */

/* Spotlight cards: slow zoom + lift */
.work-grid > .item { overflow: hidden; border-radius: .4rem; isolation: isolate; }
.work-grid .item .cover { transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease; filter: saturate(.9); }
.work-grid > .item:hover .cover { transform: scale(1.06); filter: saturate(1.05); }
.work-grid .item .info .seperator-line { transition: width .5s cubic-bezier(.2,.7,.2,1); }
.work-grid > .item:hover .info .seperator-line { width: 8rem; }
.work-grid .item .icon-button { background: var(--brass); }
.work-grid .item .icon-button span { color: #111; }

/* Buttons: arrow nudge */
.default-button .icon-button { transition: background .3s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.default-button:hover .icon-button { transform: translateX(.6rem); }

/* Accordion headers */
.accordion-item > div:first-child h5 { transition: color .3s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.accordion-item:hover > div:first-child h5 { transform: translateX(.6rem); }

/* Team carousel */
.image-carousel .item { transition: filter .5s ease; filter: grayscale(.25); }
.image-carousel .item:hover { filter: none; }

/* Hero entrance */
#intro h1, #intro h2, #intro .tag { animation: rise-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
#intro .tag { animation-delay: 1.9s; }
#intro h1   { animation-delay: 2.05s; }
#intro h2   { animation-delay: 2.25s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(2.4rem); } to { opacity: 1; transform: none; } }

/* Keyboard focus */
a:focus-visible, button:focus-visible, .accordion-item:focus-visible {
   outline: 2px solid var(--brass);
   outline-offset: 4px;
   border-radius: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
   #intro h2 { font-size: 3.4rem; }
   .card-grid .left-side, .card-grid .right-side { flex: 0 0 100%; margin-top: 0 !important; }
   .card-grid .item { padding-bottom: 48%; }
   .section h3 { padding-right: 5rem; }
   .card-grid .item h2 { font-size: 6rem; }
   .pricing-item .price h2 { font-size: 4.2rem; }
   .resume .item:hover { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
   *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
