/*
 * Premium visual layer + GSAP animation states.
 * Loaded after main.css. Elements are only hidden while html.js-anim is set,
 * which the head script adds when motion is allowed and removes if GSAP fails.
 */

:root {
   --accent: #0d6efd;
   --accent-2: #8b5cf6;
   --accent-3: #06b6d4;
   --ink: #0b1020;
   --gradient: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
   --card-shadow: 0 14px 36px -20px rgba(13, 30, 80, 0.28);
   --card-shadow-hover: 0 26px 52px -22px rgba(13, 110, 253, 0.38);
}

/* ---------- Pre-animation states ---------- */
.js-anim .hero-anim,
.js-anim #header-nav .navbar-brand,
.js-anim #header-nav .nav-item,
.js-anim #header-nav .navbar-toggler {
   visibility: hidden;
}

/* ---------- Intro curtain ---------- */
.intro-curtain {
   display: none;
}
.js-anim .intro-curtain {
   display: flex;
   position: fixed;
   inset: 0;
   z-index: 2000;
   align-items: center;
   justify-content: center;
   background: var(--ink);
   color: #fff;
   clip-path: inset(0 0 0 0);
}
.js-anim.intro-seen .intro-curtain {
   display: none;
}
.intro-curtain-inner {
   text-align: center;
   padding: 0 16px;
}
.intro-curtain-name {
   font-size: clamp(2.25rem, 7vw, 5rem);
   font-weight: 800;
   letter-spacing: -0.02em;
   line-height: 1.1;
}
.intro-curtain-line {
   width: min(320px, 60vw);
   height: 2px;
   margin: 1.25rem auto 0.75rem;
   overflow: hidden;
   background: rgba(255, 255, 255, 0.15);
}
.intro-curtain-line span {
   display: block;
   height: 100%;
   background: var(--gradient);
   transform: scaleX(0);
   transform-origin: left center;
}
.intro-curtain-count {
   font-size: 0.8rem;
   letter-spacing: 0.35em;
   font-variant-numeric: tabular-nums;
   opacity: 0.6;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   height: 3px;
   z-index: 1100;
   background: var(--gradient);
   transform: scaleX(0);
   transform-origin: left center;
   pointer-events: none;
}

/* ---------- Cursor ring (mouse only) ---------- */
.cursor-ring {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 36px;
   height: 36px;
   z-index: 2147483000;
   align-items: center;
   justify-content: center;
   border: 1.5px solid rgba(13, 110, 253, 0.55);
   border-radius: 50%;
   pointer-events: none;
   opacity: 0;
}
@media (pointer: fine) {
   .js-anim .cursor-ring {
      display: flex;
   }
}

/* ---------- Navbar ---------- */
#header-nav {
   transition: background-color 0.3s ease;
}
#header-nav.is-scrolled.bg-light {
   --bs-bg-opacity: 0.72;
   -webkit-backdrop-filter: saturate(180%) blur(14px);
   backdrop-filter: saturate(180%) blur(14px);
}
@media (min-width: 992px) {
   .navbar-nav .nav-link {
      position: relative;
   }
   .navbar-nav .nav-link::after {
      content: "";
      position: absolute;
      left: 0.5rem;
      right: 0.5rem;
      bottom: 0.3rem;
      height: 2px;
      border-radius: 2px;
      background: var(--gradient);
      transform: scaleX(0);
      transform-origin: right center;
      transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
   }
   .navbar-nav .nav-link:hover::after {
      transform: scaleX(1);
      transform-origin: left center;
   }
}

/* ---------- Hero ---------- */
.cover {
   position: relative;
   overflow: hidden;
   isolation: isolate;
}
.hero-blobs {
   position: absolute;
   inset: 0;
   z-index: -1;
   pointer-events: none;
   -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
   mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero-blob {
   position: absolute;
   border-radius: 50%;
   filter: blur(70px);
   opacity: 0.35;
   will-change: transform;
}
.hero-blob-1 {
   width: 420px;
   height: 420px;
   top: -140px;
   left: -100px;
   background: var(--accent);
}
.hero-blob-2 {
   width: 380px;
   height: 380px;
   top: 25%;
   right: -120px;
   background: var(--accent-2);
}
.hero-blob-3 {
   width: 300px;
   height: 300px;
   bottom: -140px;
   left: 38%;
   background: var(--accent-3);
}
.hero-illustration {
   will-change: transform;
}
.text-accent,
.text-accent.is-split .split-word {
   background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
   background-size: 300% 100%;
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
}
.text-accent.is-split {
   background: none;
   color: inherit;
}
.marker::after {
   transform: scaleX(var(--marker-scale, 1));
   transform-origin: left center;
}

/* ---------- Buttons ---------- */
.btn-primary {
   border: 0;
   border-radius: 999px;
   padding: 0.6rem 1.4rem;
   background: linear-gradient(135deg, var(--accent), var(--accent-2));
   box-shadow: 0 12px 26px -12px rgba(13, 110, 253, 0.7);
}
.btn-primary:hover,
.btn-primary:focus {
   background: linear-gradient(135deg, #0b5ed7, #7c3aed);
   box-shadow: 0 16px 32px -12px rgba(124, 58, 237, 0.65);
}
.js-anim .hover-effect.magnetic {
   transition: box-shadow 0.3s ease;
}

/* ---------- About ---------- */
.stats-row {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
}
.stat {
   flex: 1 1 0;
   min-width: 96px;
   padding: 0.9rem 1rem;
   border: 1px solid rgba(13, 110, 253, 0.1);
   border-radius: 16px;
   background: #fff;
   box-shadow: var(--card-shadow);
}
.stat-value {
   font-size: 1.85rem;
   font-weight: 800;
   line-height: 1;
   background: var(--gradient);
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
   font-variant-numeric: tabular-nums;
}
.stat-label {
   margin-top: 0.4rem;
   font-size: 0.72rem;
   font-weight: 700;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: #6c757d;
}
img.avatar {
   box-shadow: 0 30px 60px -30px rgba(13, 30, 80, 0.45);
}

/* ---------- Services ---------- */
.service-card {
   height: 100%;
   padding: 1.5rem 1rem 1.1rem;
   border: 1px solid rgba(0, 0, 0, 0.06);
   border-radius: 20px;
   background:
      radial-gradient(
         360px circle at var(--mx, 50%) var(--my, 0%),
         rgba(13, 110, 253, 0.1),
         transparent 45%
      ),
      #fff;
   box-shadow: var(--card-shadow);
   transition:
      box-shadow 0.4s ease,
      border-color 0.4s ease;
}
.service-card:hover {
   border-color: rgba(13, 110, 253, 0.25);
   box-shadow: var(--card-shadow-hover);
}
.service-card .h5 {
   font-size: 1rem;
   font-weight: 800;
}

/* ---------- Tech marquee ---------- */
.tech-marquee {
   margin-top: 3rem;
   padding: 1.1rem 0;
   overflow: hidden;
   background: var(--ink);
   color: #fff;
}
.tech-marquee-track {
   display: flex;
   width: max-content;
}
.tech-marquee-track span {
   display: flex;
   align-items: center;
   padding-left: 2rem;
   font-size: clamp(1.15rem, 2.6vw, 1.75rem);
   font-weight: 800;
   letter-spacing: -0.01em;
   white-space: nowrap;
}
.tech-marquee-track span::after {
   content: "\2726";
   margin-left: 2rem;
   font-size: 0.6em;
   color: var(--accent-2);
}

/* ---------- Experience & testimonials ---------- */
#testimonials .fa-quote-left {
   background: var(--gradient);
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
}

/* ---------- Layout ---------- */
body {
   padding-top: 64px;
}
.section {
   scroll-margin-top: 80px;
}

/* ---------- Products ---------- */
.product-card {
   position: relative;
   height: 100%;
   padding: 1.75rem 1.5rem 1.5rem;
   overflow: hidden;
   border: 1px solid rgba(0, 0, 0, 0.06);
   border-radius: 22px;
   background:
      radial-gradient(
         420px circle at var(--mx, 50%) var(--my, 0%),
         rgba(139, 92, 246, 0.1),
         transparent 45%
      ),
      #fff;
   box-shadow: var(--card-shadow);
   transition:
      box-shadow 0.4s ease,
      border-color 0.4s ease;
}
.product-card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: var(--gradient);
   transform: scaleX(0);
   transform-origin: left center;
   transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.product-card:hover {
   border-color: rgba(13, 110, 253, 0.2);
   box-shadow: var(--card-shadow-hover);
}
.product-card:hover::before {
   transform: scaleX(1);
}
.product-icon {
   display: grid;
   place-items: center;
   width: 56px;
   height: 56px;
   margin-bottom: 1rem;
   border-radius: 16px;
   font-size: 1.4rem;
   color: #fff;
   background: linear-gradient(135deg, var(--accent), var(--accent-2));
   box-shadow: 0 12px 24px -12px rgba(13, 110, 253, 0.7);
}
#products .col-md-6:nth-child(even) .product-icon {
   background: linear-gradient(135deg, var(--accent-2), #ec4899);
   box-shadow: 0 12px 24px -12px rgba(139, 92, 246, 0.7);
}
#products .product-card-app .product-icon {
   background: linear-gradient(135deg, var(--accent-3), var(--accent));
   box-shadow: 0 12px 24px -12px rgba(6, 182, 212, 0.7);
}
.product-tag {
   font-size: 0.72rem;
   font-weight: 800;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--accent-2);
}
.product-name {
   margin: 0.25rem 0 0.5rem;
   font-size: 1.5rem;
   font-weight: 800;
}
.product-desc {
   margin-bottom: 1rem;
   color: #555;
}
.product-chips {
   display: flex;
   flex-wrap: wrap;
   gap: 0.4rem;
   margin: 0;
   padding: 0;
   list-style: none;
}
.product-chips li {
   padding: 0.3rem 0.7rem;
   border-radius: 999px;
   font-size: 0.75rem;
   font-weight: 700;
   color: #24324d;
   background: rgba(13, 110, 253, 0.07);
}

/* ---------- Process ---------- */
.process {
   position: relative;
}
.process-steps {
   position: relative;
   display: grid;
   gap: 2rem;
   margin: 0;
   padding: 0;
   list-style: none;
}
.process-line {
   position: absolute;
   overflow: hidden;
   border-radius: 3px;
   background: rgba(13, 110, 253, 0.12);
}
.process-line span {
   display: block;
   width: 100%;
   height: 100%;
   background: var(--gradient);
}
.process-step {
   position: relative;
}
.process-dot {
   position: relative;
   z-index: 1;
   display: grid;
   place-items: center;
   width: 56px;
   height: 56px;
   border: 2px solid rgba(13, 110, 253, 0.2);
   border-radius: 50%;
   font-size: 1.15rem;
   color: var(--accent);
   background: #fff;
   transition:
      background 0.4s ease,
      color 0.4s ease,
      border-color 0.4s ease,
      box-shadow 0.4s ease;
}
html:not(.js-anim) .process-dot,
.process-step.is-active .process-dot {
   border-color: transparent;
   color: #fff;
   background: linear-gradient(135deg, var(--accent), var(--accent-2));
   box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.1), 0 14px 28px -12px rgba(13, 110, 253, 0.7);
}
.process-num {
   margin-top: 1rem;
   font-size: 0.75rem;
   font-weight: 800;
   letter-spacing: 0.2em;
   color: var(--accent-2);
}
.process-title {
   margin: 0.2rem 0 0.4rem;
   font-size: 1.15rem;
   font-weight: 800;
}
.process-step p {
   margin: 0;
   font-size: 0.95rem;
   color: #555;
}
@media (min-width: 992px) {
   .process-steps {
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
   }
   .process-step {
      text-align: center;
   }
   .process-dot {
      margin: 0 auto;
   }
   .process-line {
      top: 27px;
      left: 12.5%;
      right: 12.5%;
      height: 3px;
   }
   .process-line span {
      transform: scaleX(var(--progress, 1));
      transform-origin: left center;
   }
   .process-pin {
      min-height: 70vh;
      display: flex;
      align-items: center;
   }
   .process-pin > .container-narrow {
      width: 100%;
   }
}
@media (max-width: 991.98px) {
   .process-step {
      padding-left: 76px;
      min-height: 56px;
   }
   .process-dot {
      position: absolute;
      top: 0;
      left: 0;
   }
   .process-num {
      margin-top: 0;
   }
   .process-line {
      top: 28px;
      bottom: 28px;
      left: 26px;
      width: 3px;
   }
   .process-line span {
      transform: scaleY(var(--progress, 1));
      transform-origin: center top;
   }
}

/* ---------- Contact CTA ---------- */
.cta-panel {
   position: relative;
   isolation: isolate;
   overflow: hidden;
   padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
   border-radius: 28px;
   text-align: center;
   color: #fff;
   background: var(--ink);
}
.cta-blobs {
   position: absolute;
   inset: 0;
   z-index: -1;
   pointer-events: none;
}
.cta-blobs .hero-blob {
   opacity: 0.5;
}
.cta-kicker {
   margin-bottom: 0.75rem;
   font-size: 0.8rem;
   font-weight: 800;
   letter-spacing: 0.2em;
   text-transform: uppercase;
   color: #a5b4fc;
}
.cta-title {
   max-width: 760px;
   margin: 0 auto 1rem;
   font-size: clamp(2rem, 5vw, 3.5rem);
   font-weight: 800;
   line-height: 1.1;
   letter-spacing: -0.02em;
}
.cta-text {
   max-width: 560px;
   margin: 0 auto 1.75rem;
   color: rgba(255, 255, 255, 0.75);
}
.cta-actions {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 0.75rem;
   margin-bottom: 2rem;
}
.cta-btn {
   padding: 0.75rem 1.6rem;
   border-radius: 999px;
   font-weight: 800;
}
.cta-meta {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 0.5rem 1.5rem;
   margin: 0;
   padding: 0;
   list-style: none;
   font-size: 0.9rem;
   color: rgba(255, 255, 255, 0.7);
}
.cta-meta i {
   margin-right: 0.35rem;
   color: #a5b4fc;
}
.cta-meta a {
   color: #fff;
}



/* ---------- Hero extras ---------- */
.hero-kicker {
   display: flex;
   width: fit-content;
   align-items: center;
   gap: 0.55rem;
   margin-bottom: 0.9rem;
   padding: 0.35rem 0.9rem 0.35rem 0.7rem;
   border: 1px solid rgba(25, 135, 84, 0.25);
   border-radius: 999px;
   font-size: 0.8rem;
   font-weight: 700;
   letter-spacing: 0.04em;
   color: #146c43;
   background: rgba(255, 255, 255, 0.7);
}
.status-dot {
   position: relative;
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: #198754;
}
.status-dot::after {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: 50%;
   background: #198754;
   animation: statusPulse 2s ease-out infinite;
}
@keyframes statusPulse {
   to {
      transform: scale(3);
      opacity: 0;
   }
}
.hero-tagline {
   margin: 0.9rem 0 0;
   font-size: clamp(1.15rem, 2.2vw, 1.45rem);
   font-weight: 800;
   color: #212529;
}
.btn-ghost {
   margin-left: 0.5rem;
   padding: 0.6rem 1.4rem;
   border: 1.5px solid rgba(13, 110, 253, 0.35);
   border-radius: 999px;
   font-weight: 700;
   color: var(--accent);
   background: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover,
.btn-ghost:focus {
   border-color: var(--accent);
   color: var(--accent);
   background: #fff;
}
.hero-meta {
   margin-top: 1.25rem;
   font-size: 0.8rem;
   font-weight: 700;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   color: #6c757d;
}
.hero-meta i {
   margin-right: 0.3rem;
   color: var(--accent);
}
.hero-meta-sep {
   margin: 0 0.4rem;
   opacity: 0.5;
}
#istClock {
   font-variant-numeric: tabular-nums;
}

/* ---------- Products extras ---------- */
.product-head {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
}
.product-index {
   font-size: 0.8rem;
   font-weight: 800;
   letter-spacing: 0.15em;
   text-transform: uppercase;
   color: rgba(13, 30, 80, 0.3);
}
.subsection-title {
   font-size: 1.35rem;
   font-weight: 800;
}

/* ---------- Tech marquee: second row ---------- */
.tech-marquee-track-alt {
   margin-top: 0.6rem;
}
.tech-marquee-track-alt span {
   font-size: clamp(0.95rem, 2vw, 1.25rem);
   font-weight: 700;
   color: rgba(255, 255, 255, 0.55);
}
.tech-marquee-track-alt span::after {
   color: var(--accent-3);
}

/* ---------- Capabilities ---------- */
.cap-card {
   height: 100%;
   padding: 1.4rem 1.25rem;
   border: 1px solid rgba(0, 0, 0, 0.06);
   border-radius: 20px;
   background: #fff;
   box-shadow: var(--card-shadow);
   transition:
      box-shadow 0.4s ease,
      border-color 0.4s ease;
}
.cap-card:hover {
   border-color: rgba(13, 110, 253, 0.25);
   box-shadow: var(--card-shadow-hover);
}
.cap-head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 0.9rem;
}
.cap-head i {
   display: grid;
   place-items: center;
   width: 44px;
   height: 44px;
   border-radius: 12px;
   font-size: 1.1rem;
   color: #fff;
   background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.cap-head span,
.skills-cloud-title span {
   font-size: 0.75rem;
   font-weight: 800;
   letter-spacing: 0.15em;
   color: rgba(13, 30, 80, 0.3);
}
.cap-title {
   margin-bottom: 0.6rem;
   font-size: 0.8rem;
   font-weight: 800;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--accent-2);
}
.cap-list {
   margin: 0;
   padding: 0;
   list-style: none;
}
.cap-list li {
   padding: 0.2rem 0;
   font-weight: 700;
   line-height: 1.35;
}
.skills-cloud {
   padding: 1.4rem 1.25rem;
   border-radius: 20px;
   background: #f8f9fa;
}
.skills-cloud-title {
   margin-bottom: 0.9rem;
   font-size: 0.8rem;
   font-weight: 800;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--accent-2);
}
.skills-cloud-title span {
   margin-right: 0.5rem;
}
.skills-chips li {
   font-size: 0.85rem;
   background: #fff;
   box-shadow: 0 4px 12px -8px rgba(13, 30, 80, 0.3);
}

/* ---------- Journey ---------- */
.timeline {
   position: relative;
}
.timeline-list {
   margin: 0;
   padding: 0;
   list-style: none;
}
.timeline-line {
   position: absolute;
   top: 10px;
   bottom: 10px;
   left: 7px;
   width: 2px;
   overflow: hidden;
   background: rgba(13, 110, 253, 0.12);
}
.timeline-line span {
   display: block;
   width: 100%;
   height: 100%;
   background: var(--gradient);
   transform: scaleY(var(--progress, 1));
   transform-origin: center top;
}
.timeline-item {
   position: relative;
   padding: 0 0 1.6rem 2.4rem;
}
.timeline-item:last-child {
   padding-bottom: 0;
}
.timeline-item::before {
   content: "";
   position: absolute;
   top: 4px;
   left: 0;
   width: 16px;
   height: 16px;
   border: 2px solid rgba(13, 110, 253, 0.35);
   border-radius: 50%;
   background: #fff;
}
.timeline-item.is-current::before {
   border-color: transparent;
   background: linear-gradient(135deg, var(--accent), var(--accent-2));
   box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.12);
}
.timeline-period {
   font-size: 0.75rem;
   font-weight: 800;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--accent-2);
}
.timeline-role {
   margin: 0.15rem 0 0.1rem;
   font-size: 1.15rem;
   font-weight: 800;
}
.timeline-org {
   color: #6c757d;
   font-weight: 600;
}
.edu-title {
   margin-bottom: 0.9rem;
   font-size: 0.8rem;
   font-weight: 800;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--accent-2);
}
.edu-title i {
   margin-right: 0.35rem;
}
.edu-card {
   margin-bottom: 0.9rem;
   padding: 1.1rem 1.2rem;
   border: 1px solid rgba(0, 0, 0, 0.06);
   border-radius: 18px;
   background: #fff;
   box-shadow: var(--card-shadow);
}
.edu-card .timeline-role {
   font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
   .status-dot::after {
      animation: none;
   }
}

/* Avatar wrapper must be a block so GSAP can move it */
.avatar-frame {
   display: block;
}
