/* ============================================================
   Pritom Talukdar — Portfolio
   Design tokens & Master Styles
   ============================================================ */
:root{
  --bg: #0b0b0c;
  --surface: #131315;
  --surface-hover: #19191d;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);

  --text-1: #ededec;
  --text-2: #9a9a9f;
  --text-3: #77777c;

  --accent: #c6a15b;
  --accent-light: #e5be79;
  --accent-soft: rgba(198,161,91,0.14);
  --accent-glow: rgba(198,161,91,0.35);

  --select-blue: rgba(66,133,244,0.45);
  --select-blue-strong: rgba(96,150,255,1);

  --gradient-quote-1: #ffb47b;
  --gradient-quote-2: #c6a15b;
  --gradient-quote-3: #60a5fa;
  --gradient-quote-4: #c084fc;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --pad: clamp(1.5rem, 5vw, 3rem);
  --section-pad: clamp(5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface);
}

/* ============================================================
   Custom Animated Smooth Scrollbar
   ============================================================ */
::-webkit-scrollbar{
  width: 9px;
}
::-webkit-scrollbar-track{
  background: #0b0b0c;
}
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--surface-hover), var(--accent), var(--surface-hover));
  border-radius: 999px;
  border: 2px solid #0b0b0c;
}
::-webkit-scrollbar-thumb:hover{
  background: var(--accent-light);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  padding-top: 4.5rem; /* Offset for fixed navbar */
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

h1,h2,h3,p,dl,dd,blockquote,ul,figure{ margin: 0; }
ul{ list-style: none; padding: 0; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link{
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--text-1);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  z-index: 2000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus{ top: 1rem; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   Background Grids
   ============================================================ */
.bg-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--pad)) / 11.5) 100%;
  background-position: center top;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, black, black 85%, transparent 100%);
}
@media (max-width: 700px){
  .bg-grid{ background-size: calc((100% - 2 * var(--pad)) / 5) 100%; }
}

.bg-grain{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #60a5fa, var(--accent-light));
  z-index: 2000;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce){
  .scroll-progress{ display: none; }
}

/* ============================================================
   Header / Navigation (FIXED & NEVER HIDING)
   ============================================================ */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11,11,12,0.85);
  backdrop-filter: saturate(100%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled{
  border-bottom-color: var(--line-strong);
  background: rgba(11,11,12,0.94);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Logo */
.logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.logo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-fallback{
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-1);
}

.primary-nav{
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.primary-nav a{
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.primary-nav a:hover{
  color: var(--text-1);
  transform: translateY(-1px);
}
.primary-nav a::after{
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}
.primary-nav a:hover::after{
  left: 0;
  right: 0;
}

.nav-cta{
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover{
  border-color: var(--accent);
  color: var(--accent-light);
}

.menu-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
}

.menu-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child{ transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child{ transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav{
  position: fixed;
  inset: 4.5rem 0 0 0;
  background: rgba(11,11,12,0.98);
  backdrop-filter: blur(20px);
  z-index: 990;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem var(--pad) 3rem;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-nav.open{
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.mobile-nav nav{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav nav a{
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.mobile-nav nav a:hover{
  color: var(--accent);
  transform: translateX(6px);
}
.mobile-cta{
  align-self: flex-start;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 780px){
  .primary-nav, .nav-cta{ display: none; }
  .menu-toggle{ display: flex; }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero{
  position: relative;
  z-index: 1;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: var(--section-pad);
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy, .hero-card{ position: relative; z-index: 1; }
.hero-spotlight{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(400px circle at var(--mx, 60%) var(--my, 20%), rgba(198,161,91,0.15), transparent 70%);
}
@media (prefers-reduced-motion: reduce){
  .hero-spotlight{ display: none; }
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}
.badge-pulse{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  box-shadow: 0 0 0 0 rgba(233, 233, 233, 0.7);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot{
  0%{ box-shadow: 0 0 0 0 rgba(198,161,91,0.7); }
  70%{ box-shadow: 0 0 0 7px rgba(198,161,91,0); }
  100%{ box-shadow: 0 0 0 0 rgba(198,161,91,0); }
}

.hero-title{
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

/* Enhanced Drag to Select Animation */
.name-select-wrap{
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.name-text{
  position: relative;
  z-index: 2;
}
.select-box{
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 0;
  width: 0;
  background: var(--select-blue);
  border-right: 2.5px solid var(--select-blue-strong);
  z-index: 1;
  pointer-events: none;
  animation: textSelectLoop 7.5s var(--ease) infinite;
}
.fake-cursor{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  transform: translate(-30%, -20%) rotate(-6deg);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: cursorMoveLoop 7.5s var(--ease) infinite;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7));
}

@keyframes textSelectLoop{
  0%, 30%{ width: 0; opacity: 0; }
  32%{ opacity: 1; }
  52%{ width: 100%; opacity: 1; }
  70%{ width: 100%; opacity: 1; }
  80%{ width: 100%; opacity: 0; }
  82%, 100%{ width: 0; opacity: 0; }
}
@keyframes cursorMoveLoop{
  0%, 30%{ left: 0%; opacity: 0; transform: translate(-30%, -20%) scale(1); }
  32%{ opacity: 1; transform: translate(-30%, -20%) scale(0.9); }
  52%{ left: 100%; opacity: 1; transform: translate(-30%, -20%) scale(1); }
  70%{ left: 100%; opacity: 1; }
  80%{ left: 100%; opacity: 0; }
  82%, 100%{ left: 0%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .select-box, .fake-cursor{ animation: none !important; opacity: 0 !important; width: 0 !important; }
}

.hero-sub{
  margin-top: 1.5rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.6;
}
.hero-role{
  margin-top: 1rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-3);
}
.hero-role .plus{ color: var(--accent); margin: 0 0.2em; }

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* Universal Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn span{ transition: transform 0.25s var(--ease); }
.btn:hover span{ transform: translateX(4px); }
.btn:active{ transform: scale(0.96); }

.btn-primary{
  background: var(--text-1);
  color: var(--bg);
}
.btn-primary:hover{
  background: var(--accent);
  color: #0b0b0c;
  transform: translateY(-2px);
}
.btn-ghost{
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-1);
}
.btn-ghost:hover{
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}
.btn-lg{ padding: 1.05rem 2rem; font-size: 0.98rem; }

.hero-micro{
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ============================================================
   Hero Image Card (image1.png)
   ============================================================ */
.hero-image-card{
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 22rem;
  width: 100%;
}
.hero-image-wrapper{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  animation: heroFloat 6s ease-in-out infinite;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
@keyframes heroFloat{
  0%, 100%{ transform: translateY(0px) rotate(0deg); }
  50%{ transform: translateY(-8px) rotate(0.8deg); }
}

.hero-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hero-image-card:hover .hero-photo{
  transform: scale(1.05);
}
.hero-image-shine{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  opacity: 0.6;
}
.hero-status-pill{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-status-pill:hover{
  border-color: var(--accent);
  color: var(--text-1);
  transform: translateY(-2px);
}
.status-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
  flex-shrink: 0;
}

@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; align-items: start; }
  .hero-image-card{ justify-self: start; max-width: 18rem; margin-top: 1rem; }
}

/* Hero Entrance Sequence */
@keyframes heroUp{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}
.hero-copy > *{
  opacity: 0;
  animation: heroUp 0.75s var(--ease) forwards;
}
.hero-copy > *:nth-child(1){ animation-delay: 0.05s; }
.hero-copy > *:nth-child(2){ animation-delay: 0.12s; }
.hero-copy > *:nth-child(3){ animation-delay: 0.20s; }
.hero-copy > *:nth-child(4){ animation-delay: 0.28s; }
.hero-copy > *:nth-child(5){ animation-delay: 0.36s; }
.hero-copy > *:nth-child(6){ animation-delay: 0.44s; }
.hero-card{
  opacity: 0;
  animation: heroUp 0.8s var(--ease) forwards;
  animation-delay: 0.35s;
}

/* ============================================================
   Credentials Section (TEXT HOVER ANIMATION ONLY)
   ============================================================ */
.credentials{
  position: relative; z-index: 1;
  padding-block: var(--section-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-strong);
}
.credential{
  padding: 0;
  border: none;
  background: transparent;
}
.credentials.reveal .credential{ transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.credentials:not(.in-view) .credential{ opacity: 0; transform: translateY(16px); }
.credentials.in-view .credential:nth-child(1){ transition-delay: 0.05s; }
.credentials.in-view .credential:nth-child(2){ transition-delay: 0.16s; }
.credentials.in-view .credential:nth-child(3){ transition-delay: 0.27s; }

.credential-index{
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.credential:hover .credential-index{
  transform: translateX(4px);
  color: var(--accent-light);
}
.credential-title{
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.credential:hover .credential-title{
  color: var(--accent-light);
  transform: translateX(4px);
}
.credential-text{
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
  transition: color 0.3s var(--ease);
}
.credential:hover .credential-text{
  color: var(--text-1);
}
@media (max-width: 780px){
  .credentials{ grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   Shared Section Heading Pieces
   ============================================================ */
.section-label{
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-weight: 600;
}
.section-label::before{
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.section-heading-row{
  padding-block: var(--section-pad) clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
}
.section-heading{
  margin-top: 1rem;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.section-alt{ background: rgba(255,255,255,0.018); }

/* ============================================================
   About Section (TEXT HOVER ONLY)
   ============================================================ */
.about{ position: relative; z-index: 1; padding-block: var(--section-pad); border-top: 1px solid var(--line-strong); }
.about-grid{
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.about-heading{
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.about-text{
  margin-top: 1.5rem;
  max-width: 58ch;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-line{ margin-top: 1.75rem; display: flex; gap: 0.8em; font-size: 1rem; font-weight: 500; color: var(--text-3); flex-wrap: wrap; }
.reveal-word{
  opacity: 0;
  transform: translateY(6px);
  cursor: default;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
}
.reveal-word:hover{
  color: var(--accent);
  transform: translateY(-2px);
}
.about-line.in-view .reveal-word{ opacity: 1; transform: translateY(0); }
.about-line.in-view .reveal-word:nth-child(1){ transition-delay: 0.05s; }
.about-line.in-view .reveal-word:nth-child(2){ transition-delay: 0.18s; }
.about-line.in-view .reveal-word:nth-child(3){ transition-delay: 0.31s; }

@media (max-width: 700px){
  .about-grid{ grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ============================================================
   Selected Work (TEXT & IMAGE HOVER ONLY)
   ============================================================ */
.work{ position: relative; z-index: 1; }
.work-list{ border-top: 1px solid var(--line-strong); }
.work-row{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}
.work-row:nth-child(even){ grid-template-columns: 1.1fr 1fr; }
.work-row:nth-child(even) .work-visual{ order: 2; }

.work-visual{
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  perspective: 900px;
}
.work-visual img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-row:hover .work-visual img{
  transform: scale(1.04);
}

.work-visual-inner{
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: transform 0.3s var(--ease);
  background: var(--surface);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px);
}
.work-visual-tag{
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(11,11,12,0.7);
  backdrop-filter: blur(6px);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-row:hover .work-visual-tag{
  color: var(--accent-light);
  border-color: var(--accent);
}
.work-visual-pm{ background-color: #101014; }
.work-visual-prilum{ background-color: #0e0e10; }
.work-visual-open{
  align-items: center; justify-content: center;
  background-color: transparent;
  border: 1px dashed var(--line-strong);
}

.work-index{
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  transition: transform 0.3s var(--ease);
}
.work-row:hover .work-index{
  transform: translateX(4px);
}
.work-name{
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.work-row:hover .work-name{
  transform: translateX(6px);
  color: var(--accent);
}
.work-desc{ margin-top: 0.85rem; max-width: 44ch; color: var(--text-2); font-size: 0.98rem; line-height: 1.65; }

.work-meta{ margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; }
.work-meta dt{ font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-weight: 600; }
.work-meta dd{ margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--text-2); }

.work-link{
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.work-link span{ transition: transform 0.25s var(--ease); }
.work-row:hover .work-link{ border-color: var(--accent); color: var(--accent-light); }
.work-row:hover .work-link span{ transform: translateX(4px); }

@media (max-width: 780px){
  .work-row, .work-row:nth-child(even){ grid-template-columns: 1fr; }
  .work-row:nth-child(even) .work-visual{ order: 0; }
}

/* See More Wrap */
.see-more-wrap{
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

/* ============================================================
   Services Section (TEXT HOVER ONLY)
   ============================================================ */
.services{ position: relative; z-index: 1; }
.services-list{ border-top: 1px solid var(--line-strong); }
.service{
  display: grid;
  grid-template-columns: 3.5rem 13rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
.service-index{
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.service:hover .service-index{
  transform: translateX(4px) scale(1.2);
  color: var(--accent-light);
}
.service-title{
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.service:hover .service-title{
  color: var(--accent);
  transform: translateX(4px);
}
.service-text{
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 46ch;
  transition: color 0.25s var(--ease);
}
.service:hover .service-text{
  color: var(--text-1);
}

@media (max-width: 700px){
  .service{ grid-template-columns: 2.5rem 1fr; }
  .service-title{ grid-column: 2; }
  .service-text{ grid-column: 2; margin-top: 0.4rem; }
}

/* ============================================================
   Design + Development (Approach / Flow)
   ============================================================ */
.approach{
  position: relative; z-index: 1;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line-strong);
  text-align: center;
}
.approach-statement{
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 20ch;
  margin-inline: auto;
}
.flow{
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.flow-step span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.flow-step:hover span{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.flow.in-view .flow-step span{ opacity: 1; transform: translateY(0); }
.flow.in-view .flow-step:nth-child(1) span{ transition-delay: 0.02s; }
.flow.in-view .flow-step:nth-child(3) span{ transition-delay: 0.14s; }
.flow.in-view .flow-step:nth-child(5) span{ transition-delay: 0.26s; }
.flow.in-view .flow-step:nth-child(7) span{ transition-delay: 0.38s; }
.flow.in-view .flow-step:nth-child(9) span{ transition-delay: 0.5s; border-color: var(--accent); color: var(--accent); }

.flow-line{
  width: clamp(1.25rem, 4vw, 3rem);
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.flow.in-view .flow-line{ transform: scaleX(1); }
.flow.in-view .flow-line:nth-child(2){ transition-delay: 0.1s; }
.flow.in-view .flow-line:nth-child(4){ transition-delay: 0.22s; }
.flow.in-view .flow-line:nth-child(6){ transition-delay: 0.34s; }
.flow.in-view .flow-line:nth-child(8){ transition-delay: 0.46s; }

@media (max-width: 700px){
  .flow{ flex-direction: column; }
  .flow-line{ width: 1px; height: 1.75rem; transform: scaleY(0); transform-origin: top; }
  .flow.in-view .flow-line{ transform: scaleY(1); }
}

/* ============================================================
   Tools Section (TEXT & ICON HOVER)
   ============================================================ */
.tools{ position: relative; z-index: 1; padding-block: var(--section-pad); border-top: 1px solid var(--line-strong); }
.tools-list{
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.tools-list li{ display: contents; }
.tool-item{
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tool-item:hover{
  border-color: var(--accent);
  color: var(--accent);
}
.tool-icon{ width: 19px; height: 19px; display: inline-flex; flex-shrink: 0; }
.tool-icon svg{ width: 100%; height: 100%; }

/* ============================================================
   Writing / Articles
   ============================================================ */
.writing{ position: relative; z-index: 1; padding-block: var(--section-pad); }
.writing-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.article-card{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.article-card:hover{
  border-color: var(--accent);
}
.article-card:hover .article-title{
  color: var(--accent);
}
.article-cover{ aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.article-cover img{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.article-card:hover .article-cover img{ transform: scale(1.05); }
.article-body{ padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.article-date{ font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.article-title{ margin-top: 0.5rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; transition: color 0.25s var(--ease); }
.article-excerpt{ margin-top: 0.6rem; font-size: 0.92rem; color: var(--text-2); line-height: 1.6; flex: 1; }
.article-body .work-link{ margin-top: 1.2rem; align-self: flex-start; }

/* ============================================================
   Process Section (TEXT HOVER ONLY)
   ============================================================ */
.process{ position: relative; z-index: 1; padding-block: var(--section-pad); border-top: 1px solid var(--line-strong); }
.process-list{
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.process-step{
  padding: 0;
  border: none;
  background: transparent;
}
.process-index{
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.process-step:hover .process-index{
  transform: translateX(4px);
  color: var(--accent-light);
}
.process-title{
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.process-step:hover .process-title{
  color: var(--accent);
  transform: translateX(4px);
}
.process-text{
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.6;
  transition: color 0.25s var(--ease);
}
.process-step:hover .process-text{
  color: var(--text-1);
}

@media (max-width: 900px){
  .process-list{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .process-list{ grid-template-columns: 1fr; }
}

/* ============================================================
   Quotes by Pritom (COLORFUL GRADIENT & SHIMMER)
   ============================================================ */
.statement{
  position: relative; z-index: 1;
  padding-block: calc(var(--section-pad) * 1.2);
  border-top: 1px solid var(--line-strong);
  text-align: center;
  overflow: hidden;
}
.statement-glow{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(circle, rgba(198,161,91,0.18) 0%, rgba(96,165,250,0.12) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite alternate;
}
@keyframes glowPulse{
  0%{ transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
  100%{ transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.statement-quote{
  position: relative;
  z-index: 1;
}
.quote-text{
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 24ch;
  margin-inline: auto;
  background: linear-gradient(135deg, #ffffff 0%, #ffe4b5 25%, var(--accent-light) 50%, #93c5fd 75%, #c084fc 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: quoteShimmer 8s linear infinite;
  transition: transform 0.3s var(--ease);
}

@keyframes quoteShimmer{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}
.quote-author{
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact{
  position: relative; z-index: 1;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line-strong);
  text-align: center;
}
.contact-heading{
  margin-top: 1rem;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.contact-sub{
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 1.1rem;
}
.contact-icons{
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.contact-icons a{
  width: 2.8rem; height: 2.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-icons svg{ width: 19px; height: 19px; }
.contact-icons a:hover{
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form{
  margin: 2.5rem auto 0;
  max-width: 32rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row{ display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label{
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-row input, .form-row textarea{
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text-1);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus{
  border-color: var(--accent);
  outline: none;
}
.contact-form .btn{ align-self: flex-start; margin-top: 0.25rem; }
.form-status{ font-size: 0.88rem; min-height: 1.2em; font-weight: 500; }
.form-status.success{ color: #34d399; }
.form-status.error{ color: #f87171; }
.contact-alt{ margin-top: 2rem; font-size: 0.9rem; color: var(--text-3); }
.contact-alt a{ color: var(--text-1); text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-strong);
  padding-block: 2.75rem;
}
.footer-inner{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand{ display: flex; align-items: center; gap: 1rem; }
.footer-name{ font-size: 0.95rem; font-weight: 600; }
.footer-tag{ font-size: 0.82rem; color: var(--text-3); margin-top: 0.15rem; }
.footer-meta{
  margin-left: auto;
  display: flex;
  gap: 2rem;
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer-meta a{ transition: color 0.2s var(--ease); }
.footer-meta a:hover{ color: var(--accent); }
.back-to-top{
  margin-left: 1.5rem;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  color: var(--text-2);
  flex-shrink: 0;
}
.back-to-top:hover{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 600px){
  .footer-inner{ flex-wrap: wrap; }
  .footer-meta{ margin-left: 0; flex-direction: column; gap: 0.35rem; order: 3; width: 100%; }
  .back-to-top{ margin-left: auto; }
}

/* ============================================================
   Firebase Config Banner
   ============================================================ */
.config-banner{
  position: relative;
  z-index: 2000;
  background: var(--accent-soft);
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 0.65rem 1rem;
  animation: bannerIn 0.3s var(--ease);
}
@keyframes bannerIn{ from{ opacity: 0; transform: translateY(-8px); } to{ opacity: 1; transform: translateY(0); } }

/* ============================================================
   Scroll Reveal System
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-word, .flow-step span, .flow-line,
  .credential, .service, .process-step{
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}