/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
   width: 8px;
   height: 8px;
   background: var(--primary, #38bdf8);
   border-radius: 50%;
   position: fixed;
   top: 0; left: 0;
   pointer-events: none;
   z-index: 99999;
   transform: translate(-50%, -50%);
   box-shadow: 0 0 12px var(--primary, #38bdf8), 0 0 25px rgba(56,189,248,0.4);
   transition: width 0.3s, height 0.3s, background 0.3s, box-shadow 0.3s;
   will-change: transform;
}
.cursor-ring {
   width: 40px;
   height: 40px;
   border: 1.5px solid rgba(56, 189, 248, 0.55);
   border-radius: 50%;
   position: fixed;
   top: 0; left: 0;
   pointer-events: none;
   z-index: 99998;
   transform: translate(-50%, -50%);
   transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
   will-change: transform;
}
.cursor-dot.hovering { width: 14px; height: 14px; background: var(--secondary, #818cf8); }
.cursor-ring.hovering { width: 60px; height: 60px; border-color: rgba(129,140,248,0.5); }
.cursor-dot.clicking { transform: translate(-50%, -50%) scale(0.6); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
   position: fixed;
   inset: 0;
   background: #080f1e;
   z-index: 99997;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 2rem;
   transition: opacity 0.7s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.7s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Multilingual Hello typewriter */
.loader-hello {
   font-size: 4.5rem;
   font-weight: 700;
   color: var(--primary, #38bdf8);
   letter-spacing: 3px;
   min-width: 220px;
   min-height: 1.2em;
   text-align: center;
   display: flex;
   align-items: center;
   justify-content: center;
   animation: loaderReveal 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
   opacity: 0;
}
.loader-cursor {
   display: inline-block;
   width: 3px;
   height: 0.85em;
   background: var(--primary, #38bdf8);
   margin-left: 5px;
   vertical-align: middle;
   border-radius: 2px;
   animation: cursorBlink 0.65s steps(1) infinite;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes loaderReveal {
   0% { opacity: 0; transform: translateY(20px); }
   100% { opacity: 1; transform: translateY(0); }
}
/* loader bar removed */

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
   position: fixed;
   top: 0; left: 0;
   height: 2px;
   width: 0%;
   background: linear-gradient(90deg, var(--primary, #38bdf8), var(--secondary, #818cf8));
   z-index: 9996;
   box-shadow: 0 0 10px rgba(56,189,248,0.7);
   transition: width 0.05s linear;
   pointer-events: none;
}

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.marquee-section {
   padding: 0;
   min-height: unset;
   display: block;
   border-top: 1px solid var(--glass-border, rgba(255,255,255,0.1));
   border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.1));
   overflow: hidden;
   background: rgba(15, 23, 42, 0.6);
   backdrop-filter: blur(8px);
}
.marquee-track {
   display: flex;
   width: max-content;
   animation: marqueeScroll 30s linear infinite;
   padding: 1.2rem 0;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
   display: flex;
   align-items: center;
   gap: 0.6rem;
   padding: 0 2.5rem;
   font-size: 0.95rem;
   font-weight: 600;
   color: var(--text-muted, #94a3b8);
   letter-spacing: 0.05em;
   text-transform: uppercase;
   white-space: nowrap;
   transition: color 0.3s;
}
.marquee-item:hover { color: var(--primary, #38bdf8); }
.marquee-dot {
   width: 5px; height: 5px;
   border-radius: 50%;
   background: var(--primary, #38bdf8);
   opacity: 0.4;
   flex-shrink: 0;
}
@keyframes marqueeScroll {
   0% { transform: translateX(0); }
   100% { transform: translateX(-50%); }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
   padding: 5rem 5%;
   min-height: unset;
   display: block;
}
.stats-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   max-width: 900px;
   margin: 0 auto;
}
.stat-card {
   text-align: center;
   padding: 2.5rem 2rem;
   position: relative;
   overflow: hidden;
}
.stat-card::before {
   content: '';
   position: absolute;
   inset: 0;
   border-radius: 20px;
   background: linear-gradient(135deg, rgba(56,189,248,0.06), rgba(129,140,248,0.04));
   opacity: 0;
   transition: opacity 0.4s;
}
.stat-card:hover::before { opacity: 1; }
.stat-number {
   font-size: 4rem;
   font-weight: 700;
   line-height: 1;
   margin-bottom: 0.5rem;
   background: linear-gradient(135deg, var(--primary, #38bdf8), var(--secondary, #818cf8));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}
.stat-suffix {
   font-size: 2.5rem;
   font-weight: 700;
   background: linear-gradient(135deg, var(--primary, #38bdf8), var(--secondary, #818cf8));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}
.stat-label {
   font-size: 1rem;
   color: var(--text-muted, #94a3b8);
   letter-spacing: 0.06em;
   text-transform: uppercase;
   font-weight: 500;
}
@media (max-width: 640px) {
   .stats-grid { grid-template-columns: 1fr; }
   .stat-number { font-size: 3rem; }
}

/* ============================================================
   CHAR REVEAL ANIMATION
   ============================================================ */
.char-reveal .char {
   display: inline-block;
   opacity: 0;
   transform: translateY(40px) rotate(4deg);
   transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.char-reveal.appear .char { opacity: 1; transform: translateY(0) rotate(0deg); }
/* space char */
.char-reveal .char-space { display: inline-block; width: 0.3em; }

:root {
   /* Color System */
   --bg-color: #0f172a;
   --text-color: #f8fafc;
   --text-muted: #94a3b8;
   --primary: #38bdf8;
   --primary-hover: #0284c7;
   --secondary: #818cf8;
   --accent: #10b981;

   --glass-bg: rgba(30, 41, 59, 0.7);
   --glass-border: rgba(255, 255, 255, 0.1);
   --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

   --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: "Inter", sans-serif;
   background-color: var(--bg-color);
   color: var(--text-color);
   line-height: 1.6;
   overflow-x: hidden;
}

/* Background Effects */
.background-effects {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   z-index: -1;
   overflow: hidden;
}

.blob {
   position: absolute;
   border-radius: 50%;
   filter: blur(80px);
   opacity: 0.5;
   animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
   width: 400px;
   height: 400px;
   background: rgba(56, 189, 248, 0.3);
   top: -10%;
   left: -10%;
}

.blob-2 {
   width: 500px;
   height: 500px;
   background: rgba(129, 140, 248, 0.2);
   bottom: -20%;
   right: -10%;
   animation-delay: -5s;
}

.blob-3 {
   width: 300px;
   height: 300px;
   background: rgba(16, 185, 129, 0.2);
   top: 40%;
   left: 50%;
   animation-delay: -10s;
}

@keyframes float {
   0% {
      transform: translate(0, 0) scale(1);
   }
   50% {
      transform: translate(50px, 50px) scale(1.1);
   }
   100% {
      transform: translate(-50px, 100px) scale(0.9);
   }
}

/* Glassmorphism Classes */
.glass {
   background: var(--glass-bg);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border: 1px solid var(--glass-border);
   box-shadow: var(--glass-shadow);
}

.glass-card {
   background: var(--glass-bg);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border: 1px solid var(--glass-border);
   border-radius: 20px;
   padding: 2rem;
   transition: var(--transition);
}

.glass-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
   border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1rem 5%;
   z-index: 1000;
   border-radius: 0 0 20px 20px;
   transition: var(--transition);
}

.navbar .logo {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--primary);
   letter-spacing: 1px;
}

.nav-links {
   display: flex;
   list-style: none;
   gap: 2rem;
}

.nav-links a {
   color: var(--text-color);
   text-decoration: none;
   font-weight: 500;
   transition: var(--transition);
   position: relative;
}

.nav-links a::after {
   content: "";
   position: absolute;
   width: 0;
   height: 2px;
   background: var(--primary);
   left: 0;
   bottom: -5px;
   transition: var(--transition);
}

.nav-links a:hover::after {
   width: 100%;
}

.nav-links a:hover {
   color: var(--primary);
}

/* Buttons */
.btn {
   display: inline-block;
   padding: 0.8rem 1.8rem;
   border-radius: 30px;
   font-weight: 600;
   text-decoration: none;
   transition: var(--transition);
   cursor: pointer;
   border: none;
   font-family: inherit;
   font-size: 1rem;
}

.btn.primary {
   background: linear-gradient(135deg, var(--primary), var(--secondary));
   color: #fff;
   box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn.primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

.btn.secondary {
   background: transparent;
   color: var(--text-color);
   border: 1px solid var(--text-muted);
}

.btn.secondary:hover {
   border-color: var(--text-color);
   background: rgba(255, 255, 255, 0.05);
}

/* Layout */
section {
   padding: 3.5rem 5% 2.5rem;
   min-height: auto;
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.section-title {
   font-size: 2.5rem;
   margin-bottom: 2.5rem;
   text-align: center;
   background: linear-gradient(135deg, #f8fafc, var(--text-muted));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   position: relative;
   display: inline-block;
   left: 50%;
   transform: translateX(-50%);
}
/* Animated underline that draws in after char-reveal */
.section-title::after {
   content: '';
   position: absolute;
   bottom: -10px;
   left: 50%;
   transform: translateX(-50%);
   width: 0;
   height: 3px;
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   border-radius: 3px;
   transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}
.section-title.appear::after {
   width: 70px;
}

/* Hero Section — full viewport, content starts from top with spacious padding */
.hero {
   align-items: center;
   text-align: center;
   min-height: 100vh;
   justify-content: flex-start;
   padding-top: 8rem;
}

.profile-wrapper {
   margin-top: 0;
   margin-bottom: 2rem;
   display: flex;
   justify-content: center;
}

.profile-image {
   width: 180px;
   height: 180px;
   border-radius: 50%;
   object-fit: cover;
   border: 4px solid var(--glass-border);
   box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
   transition: var(--transition);
   animation: profileFloat 4s ease-in-out infinite;
}

.profile-image:hover {
   box-shadow: 0 0 40px rgba(56, 189, 248, 0.9);
}

@keyframes profileFloat {
   0%, 100% { transform: translateY(0); }
   50%       { transform: translateY(-10px); }
}

.hero .greeting {
   font-size: 1.5rem;
   color: var(--primary);
   margin-bottom: 0.5rem;
   font-weight: 400;
}

.hero .name {
   font-size: 4.5rem;
   font-weight: 700;
   margin-bottom: 1rem;
   line-height: 1.1;
   background: linear-gradient(135deg, #fff, var(--text-muted));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}

.hero .title {
   font-size: 2rem;
   color: var(--text-muted);
   font-weight: 400;
   margin-bottom: 1.5rem;
}

.hero .summary {
   font-size: 1.2rem;
   max-width: 600px;
   margin: 0 auto 2.5rem;
   color: var(--text-muted);
}

.cta-group {
   display: flex;
   gap: 1rem;
   justify-content: center;
   margin-bottom: 2.5rem;
}

.social-links {
   display: flex;
   gap: 1.5rem;
   justify-content: center;
}

.social-icon {
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: var(--transition);
}

.social-icon img,
.social-icon svg {
   width: 100%;
   height: 100%;
   transition: var(--transition);
}

.social-icon img {
   filter: invert(1);
}

.social-icon:hover {
   transform: translateY(-3px);
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover img {
   transform: scale(1.05);
   filter: invert(1) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.social-icon:hover svg {
   transform: scale(1.05);
   filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

/* About & Skills Grid */
.about-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 3rem;
   align-items: center;
}

.about-text p {
   font-size: 1.1rem;
   color: var(--text-muted);
   margin-bottom: 1.5rem;
}

.skills-container {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
}

.skill-tag {
   background: rgba(56, 189, 248, 0.1);
   color: var(--primary);
   padding: 0.5rem 1rem;
   border-radius: 20px;
   font-size: 0.9rem;
   font-weight: 600;
   border: 1px solid rgba(56, 189, 248, 0.2);
   transition: var(--transition);
}

.skill-tag:hover {
   background: rgba(56, 189, 248, 0.2);
   transform: translateY(-2px);
}

/* Experience Timeline */
.timeline {
   max-width: 800px;
   margin: 0 auto;
   position: relative;
}

.timeline::before {
   content: "";
   position: absolute;
   left: 20px;
   top: 0;
   height: 100%;
   width: 2px;
   background: var(--glass-border);
}

.timeline-item {
   position: relative;
   padding-left: 60px;
   margin-bottom: 3rem;
}

.timeline-dot {
   position: absolute;
   left: 14px;
   top: 0;
   width: 14px;
   height: 14px;
   border-radius: 50%;
   background: var(--primary);
   box-shadow: 0 0 10px var(--primary);
}

.timeline-content h3 {
   font-size: 1.5rem;
   margin-bottom: 0.3rem;
}

.timeline-content h4 {
   font-size: 1.1rem;
   color: var(--primary);
   margin-bottom: 0.5rem;
   font-weight: 500;
}

.timeline-date {
   font-size: 0.9rem;
   color: var(--text-muted);
   margin-bottom: 1rem;
   display: inline-block;
   background: rgba(255, 255, 255, 0.05);
   padding: 0.2rem 0.8rem;
   border-radius: 12px;
}

.timeline-content p {
   color: var(--text-muted);
   font-size: 1rem;
}

/* Animations */
.fade-in {
   opacity: 0;
   transform: translateY(30px);
   transition:
      opacity 0.8s ease-out,
      transform 0.8s ease-out;
}

.fade-in.appear {
   opacity: 1;
   transform: translateY(0);
}

/* Testimonials */
.testimonials-grid.masonry-wrapper {
   display: flex;
   justify-content: center;
   align-items: flex-start;
   gap: 2rem;
   margin-top: 2rem;
   overflow: visible;
}

.testi-column {
   display: flex;
   flex-direction: column;
   gap: 2rem;
   flex: 1;
   max-width: 380px;
   will-change: transform; /* optimized for parallax */
}

.testi-column.col-2 {
   margin-top: 5rem; /* Staggered middle column */
}

@media (max-width: 900px) {
   .testimonials-grid.masonry-wrapper {
      flex-direction: column;
      align-items: center;
   }
   .testi-column {
      max-width: 100%;
   }
   .testi-column.col-2 {
      margin-top: 0;
   }
}

.testimonial-card {
   position: relative;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   padding-top: 3rem;
}

.quote-icon {
   font-size: 5rem;
   color: rgba(56, 189, 248, 0.15);
   position: absolute;
   top: 10px;
   left: 20px;
   font-family: Georgia, serif;
   line-height: 1;
}

.testimonial-text {
   font-size: 1.05rem;
   color: var(--text-color);
   font-style: italic;
   margin-bottom: 2rem;
   position: relative;
   z-index: 1;
   line-height: 1.7;
}

.testimonial-author {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-top: auto;
   border-top: 1px solid var(--glass-border);
   padding-top: 1.2rem;
}

.author-avatar {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background-color: var(--glass-border);
   background-size: cover;
   background-position: center;
   border: 2px solid rgba(56, 189, 248, 0.3);
}

.author-info h4 {
   color: var(--primary);
   font-size: 1rem;
   margin-bottom: 0.1rem;
}

.author-info span {
   color: var(--text-muted);
   font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
   .hero .name {
      font-size: 3rem;
   }
   .hero .title {
      font-size: 1.5rem;
   }
   .about-grid {
      grid-template-columns: 1fr;
   }
   .nav-links {
      display: none;
   } /* Could add a hamburger menu */
   .cta-group {
      flex-direction: column;
   }
}

/* ============================================================
   WORK SECTION — Scroll-triggered card carousel
   ============================================================ */
.work-section {
   padding: 0;
   min-height: unset;
   display: block;
   /* height set by JS to N × 100vh */
}

/* Sticky shell — stays in viewport while section scrolls */
.work-sticky-inner {
   position: sticky;
   top: 0;
   height: 100vh;
   display: flex;
   flex-direction: column;
   overflow: hidden;
}

.work-header {
   padding: 4rem 6% 1rem;
   text-align: center;
   flex-shrink: 0;
}
.work-subtitle {
   color: var(--text-muted);
   font-size: 1.05rem;
   margin-top: -1.5rem;
   margin-bottom: 0;
}

/* ============================================================
   CAROUSEL LAYOUT — info left, card deck right
   ============================================================ */
.work-carousel-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 5%;
   padding: 0 6% 2rem;
   align-items: center;
   flex: 1;
   position: relative;
}

/* LEFT: animated info panels */
.work-info-area {
   position: relative;
   min-height: 440px;
}
.work-info-item {
   position: absolute;
   top: 0;
   width: 100%;
   display: flex;
   flex-direction: column;
   gap: 1.2rem;
   transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
   pointer-events: none;
}
.work-info-item.active {
   opacity: 1;
   transform: translateX(0);
   z-index: 2;
   pointer-events: all;
}
.work-info-item.hidden-right,
.work-info-item.enter-right {
   opacity: 0;
   transform: translateX(55px);
   z-index: 0;
}
.work-info-item.hidden-left,
.work-info-item.enter-left {
   opacity: 0;
   transform: translateX(-55px);
   z-index: 0;
}
.work-info-item.exit-left {
   opacity: 0;
   transform: translateX(-55px);
   z-index: 1;
}
.work-info-item.exit-right {
   opacity: 0;
   transform: translateX(55px);
   z-index: 1;
}

/* RIGHT: card deck with shuffle animation */
.work-card-area {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
}
.work-deck {
   position: relative;
   width: 100%;
   max-width: 360px;
   min-height: 420px;
   margin: 0 auto;
}
.work-card-item {
   position: absolute;
   width: 100%;
   transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.work-card-item.active {
   opacity: 1;
   transform: translateX(0) rotate(0deg) scale(1);
   z-index: 3;
}
.work-card-item.hidden-right,
.work-card-item.enter-right {
   opacity: 0;
   transform: translateX(110%) rotate(8deg) scale(0.88);
   z-index: 0;
   pointer-events: none;
}
.work-card-item.hidden-left,
.work-card-item.enter-left {
   opacity: 0;
   transform: translateX(-110%) rotate(-8deg) scale(0.88);
   z-index: 0;
   pointer-events: none;
}
.work-card-item.exit-left {
   opacity: 0;
   transform: translateX(-110%) rotate(-8deg) scale(0.88);
   z-index: 2;
   pointer-events: none;
}
.work-card-item.exit-right {
   opacity: 0;
   transform: translateX(110%) rotate(8deg) scale(0.88);
   z-index: 2;
   pointer-events: none;
}

/* The card itself */
.work-card {
   width: 100%;
   padding: 2.5rem;
   border-radius: 28px;
   position: relative;
   overflow: hidden;
   transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.work-card:hover {
   transform: translateY(-8px) scale(1.02);
   box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.work-card-glow {
   position: absolute;
   top: -40%; left: -20%;
   width: 140%; height: 140%;
   border-radius: 50%;
   filter: blur(60px);
   opacity: 0.2;
   pointer-events: none;
}
.work-app-icon {
   width: 72px; height: 72px;
   border-radius: 20px;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid var(--glass-border);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2rem;
   margin-bottom: 1.2rem;
}
.work-app-title-large {
   font-size: 1.9rem;
   font-weight: 700;
   margin-bottom: 0.3rem;
   background: linear-gradient(135deg, #fff, var(--text-muted));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}
.work-app-category {
   font-size: 0.82rem;
   color: var(--text-muted);
   letter-spacing: 0.08em;
   text-transform: uppercase;
   margin-bottom: 1.5rem;
}
.work-app-stats {
   display: flex;
   gap: 1.8rem;
   margin-bottom: 1.5rem;
}
.work-app-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.work-app-stat .stat-val {
   font-size: 1.3rem;
   font-weight: 700;
   color: var(--primary);
   -webkit-text-fill-color: unset;
}
.work-app-stat .stat-lbl {
   font-size: 0.72rem;
   color: var(--text-muted);
   letter-spacing: 0.06em;
   text-transform: uppercase;
}
.work-card-progress {
   height: 2px;
   background: rgba(255,255,255,0.06);
   border-radius: 2px;
   overflow: hidden;
}
.work-card-progress-fill {
   height: 100%;
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   border-radius: 2px;
   transition: width 0.4s ease;
}

/* Info panel text pieces */
.work-entry-label {
   font-size: 0.78rem;
   font-weight: 700;
   color: var(--primary);
   letter-spacing: 0.12em;
   text-transform: uppercase;
}
.work-entry-title {
   font-size: 2.2rem;
   font-weight: 700;
   line-height: 1.15;
   background: linear-gradient(135deg, #fff, var(--text-muted));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
}
.work-entry-desc {
   font-size: 0.95rem;
   color: var(--text-muted);
   line-height: 1.7;
}
.work-entry-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 0.4rem;
}
.work-entry-tag {
   padding: 0.2rem 0.65rem;
   border-radius: 10px;
   background: rgba(129,140,248,0.08);
   border: 1px solid rgba(129,140,248,0.2);
   color: var(--secondary);
   font-size: 0.78rem;
   font-weight: 600;
}
.work-entry-link {
   display: inline-flex;
   align-items: center;
   gap: 0.45rem;
   color: var(--primary);
   text-decoration: none;
   font-weight: 600;
   font-size: 0.88rem;
   border-bottom: 1px solid rgba(56,189,248,0.3);
   padding-bottom: 2px;
   width: fit-content;
   transition: var(--transition);
}
.work-entry-link:hover { gap: 0.8rem; border-color: var(--primary); }
.work-entry-link--soon {
   opacity: 0.45;
   cursor: default;
   pointer-events: none;
   font-style: italic;
   color: var(--text-muted);
   border-bottom-color: transparent;
}

/* Scroll progress indicator — thin bar at bottom of sticky panel */
.work-scroll-indicator {
   position: absolute;
   bottom: 0;
   left: 6%;
   right: 6%;
   height: 2px;
   background: rgba(255,255,255,0.06);
   border-radius: 2px;
   overflow: hidden;
}
.work-scroll-bar {
   height: 100%;
   width: 20%;           /* updated by JS */
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   border-radius: 2px;
   transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
   box-shadow: 0 0 8px var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
   .work-carousel-wrapper {
      grid-template-columns: 1fr;
      padding: 1rem 5% 2rem;
      gap: 2rem;
   }
   .work-card-area { order: -1; }
   .work-info-area { min-height: 340px; }
   .work-entry-title { font-size: 1.7rem; }
   .work-sticky-inner { height: 100svh; }
}

/* ============================================================
   ACTIVE NAV LINK
   ============================================================ */
.nav-links a.active {
   color: var(--primary);
}
.nav-links a.active::after {
   width: 100%;
}

/* ============================================================
   TYPEWRITER — inline blinking cursor
   ============================================================ */
.typewriter-target::after {
   content: '|';
   color: var(--primary);
   animation: typewriterBlink 0.7s steps(1) infinite;
   margin-left: 2px;
}
.typewriter-target.done::after {
   display: none;
}
@keyframes typewriterBlink {
   0%, 100% { opacity: 1; }
   50% { opacity: 0; }
}

/* ============================================================
   SKILL TAG STAGGER
   ============================================================ */
.skills-container .skill-tag {
   opacity: 0;
   transform: translateY(14px) scale(0.92);
   transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.skills-container.appear .skill-tag {
   opacity: 1;
   transform: translateY(0) scale(1);
}

/* ============================================================
   SLIDE FROM SIDES (timeline items, etc.)
   ============================================================ */
.slide-left {
   opacity: 0;
   transform: translateX(-48px);
   transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-right {
   opacity: 0;
   transform: translateX(48px);
   transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-left.appear, .slide-right.appear {
   opacity: 1;
   transform: translateX(0);
}

/* ============================================================
   ENGINEERING MINDSET — standalone big card
   ============================================================ */
.mindset-feature {
   width: 100%;
   padding: 4rem;
   border-radius: 28px;
   background: var(--glass-bg);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border: 1px solid var(--glass-border);
   box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
   text-align: center;
   margin-bottom: 3rem;
   position: relative;
   overflow: hidden;
}
/* Decorative radial glow behind the card */
.mindset-feature::before {
   content: '';
   position: absolute;
   top: -60%;
   left: 50%;
   transform: translateX(-50%);
   width: 600px;
   height: 600px;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
   pointer-events: none;
}
.mindset-eyebrow {
   display: inline-block;
   font-size: 0.75rem;
   font-weight: 700;
   color: var(--primary);
   letter-spacing: 0.22em;
   text-transform: uppercase;
   margin-bottom: 1.5rem;
   padding: 0.3rem 1.1rem;
   background: rgba(56,189,248,0.08);
   border: 1px solid rgba(56,189,248,0.2);
   border-radius: 20px;
}
.mindset-heading {
   font-size: clamp(2.2rem, 4vw, 3.6rem);
   font-weight: 700;
   line-height: 1.1;
   margin-bottom: 1.5rem;
   background: linear-gradient(135deg, #fff 50%, var(--primary));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   min-height: 1.2em;
}
.mindset-divider {
   width: 0;
   height: 3px;
   background: linear-gradient(90deg, var(--primary), var(--secondary));
   margin: 0 auto 2rem;
   border-radius: 3px;
   transition: width 0.9s cubic-bezier(0.25, 1, 0.5, 1) 1s;
}
.mindset-divider.grow { width: 80px; }
.mindset-body {
   max-width: 760px;
   margin: 0 auto;
   /* always visible — content appears via typewriter */
}
.mindset-body p {
   font-size: 1.12rem;
   color: var(--text-muted);
   line-height: 1.9;
   margin-bottom: 1rem;
}
@media (max-width: 768px) {
   .mindset-feature { padding: 2.5rem 1.5rem; }
   .mindset-heading  { font-size: 2rem; }
}

/* ============================================================
   ABOUT SECTION — skills below mindset card
   ============================================================ */
.about { gap: 0; }
.skills-container {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
   padding: 2.5rem;
}

/* ============================================================
   SCROLL-REVEAL: scale-up variant
   ============================================================ */
.reveal-scale {
   opacity: 0;
   transform: scale(0.9) translateY(20px);
   transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.appear {
   opacity: 1;
   transform: scale(1) translateY(0);
}

/* ============================================================
   HERO PARALLAX — JS drives transform on scroll
   ============================================================ */
.hero-content {
   will-change: transform, opacity;
   transition: none; /* transitions handled by JS rAF */
}

/* ============================================================
   TESTIMONIALS — stagger cards per column
   ============================================================ */
.testi-column .testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testi-column .testimonial-card:nth-child(2) { transition-delay: 150ms; }

/* ============================================================
   BACKGROUND BLOB MOUSE PARALLAX — driven by JS
   ============================================================ */
.blob { will-change: transform; }

/* ============================================================
   STATS — scale-in on scroll with stagger
   ============================================================ */
.stat-card {
   opacity: 0;
   transform: translateY(30px) scale(0.95);
   transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card.appear {
   opacity: 1;
   transform: translateY(0) scale(1);
}

/* ============================================================
   ACCESSIBILITY — prefers-reduced-motion
   Disables animations & transitions for users who prefer it
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
   *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      transition-delay: 0ms !important;
      scroll-behavior: auto !important;
   }

   /* Immediately reveal all animated elements */
   .fade-in, .char-reveal, .slide-left, .slide-right,
   .skill-tag, .stat-card, .reveal-scale, .wm-card {
      opacity: 1 !important;
      transform: none !important;
   }

   /* Stop floating profile image */
   .profile-image { animation: none !important; }

   /* Stop marquee scrolling */
   .marquee-track { animation: none !important; }

   /* Disable parallax movement */
   .hero-content { transform: none !important; }
   .testi-column { transform: none !important; }
   .blob         { transform: none !important; }

   /* Prevent cursor ring lag trail from being distracting */
   #cursor-ring  { transition: none !important; }
}

/* ============================================================
   SKIP TO CONTENT — keyboard navigation accessibility link
   ============================================================ */
.skip-to-content {
   position: absolute;
   top: -100%;
   left: 1rem;
   z-index: 9999;
   padding: 0.5rem 1rem;
   background: var(--primary);
   color: #fff;
   border-radius: 0 0 6px 6px;
   font-weight: 600;
   text-decoration: none;
   transition: top 0.2s ease;
}
.skip-to-content:focus {
   top: 0;
}

/* ============================================================
   EXTRACTED INLINE STYLES — previously style="" attributes
   ============================================================ */

/* Nav — Studio Apps accent link */
.nav-studio-link { color: var(--primary); }

/* Stat cards — staggered transition-delay via nth-child */
.stat-card:nth-child(1) { transition-delay: 0ms;   }
.stat-card:nth-child(2) { transition-delay: 120ms;  }
.stat-card:nth-child(3) { transition-delay: 240ms;  }

/* Contact section */
.contact-section  { min-height: 50vh; }
.contact-card     { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-heading  { margin-bottom: 1rem; font-size: 2rem; }
.social-links     { display: flex; justify-content: center; gap: 20px; }

/* ============================================================
   MOBILE WORK FEED — Story-card layout (≤ 640 px)
   .work-mobile-feed is hidden by default; .work-sticky-inner
   is hidden on mobile. Both flipped in the breakpoint below.
   ============================================================ */
.work-mobile-feed { display: none; }

@media (max-width: 640px) {
   /* Hide the sticky desktop carousel */
   .work-sticky-inner { display: none; }

   /* Show the story-card feed */
   .work-mobile-feed {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      padding: 5rem 1rem 3rem;
   }

   /* ── Card shell ──────────────────────────────────────────── */
   .wm-card {
      position: relative;
      border-radius: 24px;
      overflow: hidden;
      padding: 0;                          /* aurora / bar use absolute insets */
      background: var(--glass-bg);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid var(--glass-border);
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
   }

   /* Aurora radial glow — top-left corner, tinted by project colour (set via JS) */
   .wm-aurora {
      position: absolute;
      top: 0; left: 0;
      width: 180px; height: 180px;
      pointer-events: none;
      z-index: 0;
      /* background set via JS: radial-gradient(ellipse at 0% 0%, {colour}55 0%, transparent 65%) */
   }

   /* Thin coloured accent bar at the very top of the card (set via JS) */
   .wm-accent-bar {
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      z-index: 2;
      border-radius: 24px 24px 0 0;
      /* background set via JS: linear-gradient(90deg, {colour}, {colour}44) */
   }

   /* Everything inside the card sits above the aurora */
   .wm-header,
   .wm-meta,
   .wm-desc,
   .wm-tags,
   .wm-stats,
   .wm-footer {
      position: relative;
      z-index: 1;
   }

   /* ── Header row: icon + text block ──────────────────────── */
   .wm-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1.5rem 1.25rem 0.75rem;
   }

   .wm-icon {
      flex-shrink: 0;
      width: 56px; height: 56px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--glass-border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.75rem;
   }

   .wm-header-text {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      min-width: 0;
   }

   .wm-index {
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      opacity: 0.8;
   }

   .wm-name {
      font-size: 1.25rem;
      font-weight: 700;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      background: linear-gradient(135deg, #fff, var(--text-muted));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
   }

   .wm-category {
      font-size: 0.72rem;
      color: var(--text-muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
   }

   /* ── Meta line: Company · Period ────────────────────────── */
   .wm-meta {
      padding: 0 1.25rem;
      font-size: 0.78rem;
      color: var(--text-muted);
      margin: 0 0 0.6rem;
      opacity: 0.75;
   }

   /* Thin separator after meta */
   .wm-meta::after {
      content: '';
      display: block;
      margin-top: 0.75rem;
      height: 1px;
      background: var(--glass-border);
   }

   /* ── Description — fully visible, no clamp ───────────────── */
   .wm-desc {
      padding: 0.6rem 1.25rem 0;
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.7;
      margin: 0;
   }

   /* ── Tags ────────────────────────────────────────────────── */
   .wm-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      padding: 0.9rem 1.25rem 0;
   }

   /* ── Stats row ───────────────────────────────────────────── */
   .wm-stats {
      display: flex;
      gap: 0;
      padding: 1rem 1.25rem 0;
      border-top: 1px solid var(--glass-border);
      margin-top: 1rem;
   }

   .wm-stat {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      align-items: center;
      padding: 0.5rem 0;
   }

   /* Divider between stat cells */
   .wm-stat + .wm-stat {
      border-left: 1px solid var(--glass-border);
   }

   .wm-stat-val {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--primary);
   }

   .wm-stat-lbl {
      font-size: 0.65rem;
      color: var(--text-muted);
      letter-spacing: 0.07em;
      text-transform: uppercase;
      text-align: center;
   }

   /* ── Footer: link + dot indicators ─────────────────────── */
   .wm-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 1.25rem 1.25rem;
      border-top: 1px solid var(--glass-border);
      margin-top: 0.75rem;
   }

   /* Dots — current card dot is highlighted */
   .wm-dots {
      display: flex;
      gap: 5px;
      align-items: center;
   }

   .wm-dot {
      width: 5px; height: 5px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.18);
      transition: background 0.3s ease, transform 0.3s ease;
   }

   .wm-dot.active {
      background: var(--primary);
      transform: scale(1.4);
      box-shadow: 0 0 6px var(--primary);
   }

   /* ── Entrance animation — fires automatically, no observer needed ── */
   @keyframes wmCardIn {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0);    }
   }

   .wm-card {
      animation: wmCardIn 0.55s cubic-bezier(0.25, 1, 0.5, 1) both;
   }

   /* Stagger each card slightly */
   .wm-card:nth-child(1) { animation-delay: 0ms;   }
   .wm-card:nth-child(2) { animation-delay: 100ms; }
   .wm-card:nth-child(3) { animation-delay: 200ms; }
   .wm-card:nth-child(4) { animation-delay: 300ms; }
   .wm-card:nth-child(5) { animation-delay: 400ms; }
   .wm-card:nth-child(n+6) { animation-delay: 500ms; }
}
