/* ==========================================================================
   Prism Portfolio — Main Stylesheet
   --------------------------------------------------------------------------
   01. Base & Reset
   02. Utilities
   03. Preloader
   04. Navbar
   05. Hero
   06. Section Headings
   07. About
   08. Services
   09. Skills
   10. Projects
   11. Experience Timeline
   12. Testimonials
   13. Contact
   14. Footer
   15. Project Details Page
   16. 404 Page
   17. Toast, Back-to-top, Reveal Animations
   18. Responsive
   ========================================================================== */

/* 01. Base & Reset ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #fff; }

section { padding: 110px 0; position: relative; }

.section-alt { background: var(--bg-alt); }

/* 02. Utilities ---------------------------------------------------------- */
.text-accent { color: var(--accent) !important; }
.text-muted-c { color: var(--text-muted) !important; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-prism {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  cursor: pointer;
}
.btn-prism i { font-size: 1.15rem; }

.btn-prism-primary { background: var(--gradient); color: #fff; }
.btn-prism-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px var(--accent);
}

.btn-prism-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-prism-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.card-prism {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card-prism:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }

/* 03. Preloader ---------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.96); } }

/* 04. Navbar ------------------------------------------------------------- */
.navbar-prism {
  height: var(--nav-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar-prism.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand span { color: var(--accent); }

.navbar-prism .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.navbar-prism .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}
.navbar-prism .nav-link:hover,
.navbar-prism .nav-link.active { color: var(--text); }
.navbar-prism .nav-link.active::after { width: 18px; left: calc(50% - 9px); }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.theme-toggle:hover { transform: rotate(25deg); border-color: var(--accent); }

.navbar-toggler { border: none; color: var(--text); font-size: 1.8rem; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }

/* 05. Hero --------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
  pointer-events: none;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.availability .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
  margin: 1.4rem 0 1rem;
}
.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--text-muted);
  min-height: 2.2em;
}
.typed-text { color: var(--accent); }
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lead { color: var(--text-muted); font-size: 1.08rem; max-width: 540px; }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem; }
.hero-stats .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.hero-stats .label { color: var(--text-faint); font-size: 0.85rem; margin-top: 0.35rem; }

.hero-visual { position: relative; max-width: 440px; margin-inline: auto; }
.hero-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.float-badge i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
}
.float-badge small { display: block; font-weight: 400; color: var(--text-faint); font-size: 0.75rem; }
.float-badge.b1 { top: 12%; left: -40px; }
.float-badge.b2 { bottom: 10%; right: -36px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 1.6rem;
  animation: float 2.2s ease-in-out infinite;
}

/* 06. Section Headings --------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.section-lead { color: var(--text-muted); max-width: 620px; }

/* 07. About -------------------------------------------------------------- */
.about-img-wrap { position: relative; }
.about-img { border-radius: var(--radius-lg); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.exp-badge {
  position: absolute;
  bottom: -24px;
  right: 24px;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.exp-badge strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; display: block; }
.exp-badge span { font-size: 0.8rem; opacity: 0.9; }

.info-list { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.5rem; }
.info-list li { font-size: 0.93rem; color: var(--text-muted); }
.info-list strong { display: block; color: var(--text); font-weight: 600; }

/* 08. Services ----------------------------------------------------------- */
.service-card { padding: 2.2rem; height: 100%; position: relative; overflow: hidden; }
.service-card .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.service-card:hover .icon { background: var(--accent); color: #fff; }
.service-card h4 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.service-card .num {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
}

/* 09. Skills ------------------------------------------------------------- */
.skill { margin-bottom: 1.6rem; }
.skill-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.55rem; }
.skill-head span:last-child { color: var(--text-faint); font-weight: 500; }
.skill-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.skill-fill { height: 100%; width: 0; border-radius: inherit; background: var(--gradient); transition: width 1.6s var(--ease); }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool {
  padding: 1.3rem 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.tool i { font-size: 2.1rem; display: block; margin-bottom: 0.5rem; color: var(--text); transition: color 0.3s; }
.tool:hover i { color: var(--accent); }

/* 10. Projects ----------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 3rem; }
.filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.project-col { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.project-col.is-hiding { opacity: 0; transform: scale(0.95); }

.project-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.project-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 11; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.07); }
.project-thumb .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 13, 15, 0.55);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project-card:hover .overlay { opacity: 1; }
.overlay .view-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  transform: scale(0.6);
  transition: transform 0.4s var(--ease);
}
.project-card:hover .view-btn { transform: scale(1); }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: 0.78rem; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.project-body h4 { font-size: 1.25rem; margin: 0.4rem 0 0.6rem; }
.project-body p { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* 11. Experience Timeline ------------------------------------------------ */
.tab-switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}
.tab-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.tab-switch button.active { background: var(--accent); color: #fff; }

.timeline { position: relative; padding-left: 2rem; max-width: 820px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-panel { display: none; }
.timeline-panel.active { display: block; animation: fadeUp 0.5s var(--ease); }
.tl-item { position: relative; padding: 1.6rem 1.8rem; margin-bottom: 1.5rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem + 1px);
  top: 2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.tl-date { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.tl-item h4 { font-size: 1.2rem; margin: 0.35rem 0 0.15rem; }
.tl-org { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 0.7rem; }
.tl-item p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 12. Testimonials ------------------------------------------------------- */
.testimonial-slider { position: relative; max-width: 820px; margin-inline: auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.7s var(--ease); }
.testimonial { flex: 0 0 100%; padding: 0.5rem; }
.testimonial-inner { padding: 2.8rem; text-align: center; }
.testimonial-inner .quote-icon { font-size: 3rem; color: var(--accent); line-height: 1; }
.testimonial-inner blockquote { font-size: 1.15rem; color: var(--text); margin: 1.2rem 0 2rem; font-style: normal; }
.author { display: inline-flex; align-items: center; gap: 0.9rem; text-align: left; }
.author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.author strong { display: block; }
.author span { color: var(--text-faint); font-size: 0.85rem; }
.stars { color: var(--accent-2); margin-bottom: 0.25rem; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2rem; }
.slider-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dots button { width: 9px; height: 9px; border-radius: 99px; border: none; background: var(--border); transition: all 0.3s var(--ease); padding: 0; }
.slider-dots button.active { width: 28px; background: var(--accent); }

.client-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; margin-top: 4rem; opacity: 0.55; }
.client-logos span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text-muted); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 0.4rem; }

/* 13. Contact ------------------------------------------------------------ */
.contact-info { display: grid; gap: 1rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; }
.contact-item i {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.4rem;
}
.contact-item small { display: block; color: var(--text-faint); font-size: 0.8rem; }
.contact-item a, .contact-item span { font-weight: 600; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.25rem;
  transition: all 0.3s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }

.contact-form { padding: 2.5rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-control, .form-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus, .form-select:focus {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-select option { background: var(--surface); color: var(--text); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #ef4444; }
.invalid-feedback { font-size: 0.8rem; }

/* 14. Footer ------------------------------------------------------------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); }
.footer-cta { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.03em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.87rem; }

/* 15. Project Details Page ---------------------------------------------- */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 50px; }
.breadcrumb-c { display: flex; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--text-faint); margin-bottom: 1.2rem; }
.breadcrumb-c a { color: var(--text-muted); }
.detail-cover { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border: 1px solid var(--border); }
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.5rem 0 0; }
.meta-item { padding: 1.3rem; }
.meta-item small { display: block; color: var(--text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.meta-item strong { font-size: 0.98rem; }
.detail-block h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.detail-block p { color: var(--text-muted); }
.detail-list { list-style: none; padding: 0; }
.detail-list li { position: relative; padding-left: 1.8rem; margin-bottom: 0.8rem; color: var(--text-muted); }
.detail-list li i { position: absolute; left: 0; top: 4px; color: var(--accent); font-size: 1.1rem; }
.gallery-img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--border); }
.result-card { padding: 1.8rem; text-align: center; }
.result-card .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.result-card p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }
.next-project { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 2.4rem; }
.next-project small { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.next-project h4 { margin: 0.3rem 0 0; font-size: 1.5rem; }
.next-project .arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.next-project:hover .arrow { transform: translateX(6px); }

/* 16. 404 Page ----------------------------------------------------------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.error-code { font-family: var(--font-display); font-size: clamp(7rem, 22vw, 14rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.06em; }

/* 17. Toast, Back-to-top, Reveal --------------------------------------- */
.toast-prism {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 140%);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 500;
  font-size: 0.93rem;
  transition: transform 0.5s var(--ease);
}
.toast-prism.show { transform: translate(-50%, 0); }
.toast-prism i { font-size: 1.4rem; color: #22c55e; }
.toast-prism.error i { color: #ef4444; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* 18. Responsive --------------------------------------------------------- */
@media (max-width: 991.98px) {
  section { padding: 85px 0; }
  .navbar-prism .navbar-collapse {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.8rem;
    box-shadow: var(--shadow);
  }
  .navbar-prism:not(.is-scrolled) { background: color-mix(in srgb, var(--bg) 90%, transparent); }
  .navbar-prism .nav-link.active::after { display: none; }
  .hero { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero .d-flex.gap-3 { justify-content: center; }
  .hero-visual { margin-top: 3.5rem; max-width: 360px; }
  .float-badge.b1 { left: -14px; }
  .float-badge.b2 { right: -14px; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  section { padding: 70px 0; }
  .hero-stats { gap: 1.6rem; }
  .info-list { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form, .testimonial-inner { padding: 1.6rem; }
  .float-badge { font-size: 0.75rem; padding: 0.55rem 0.75rem; }
  .float-badge i { width: 30px; height: 30px; font-size: 1rem; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .next-project { padding: 1.5rem; }
  .client-logos { gap: 1.6rem; }
}
