/* ═══════════════════════════════════════════════════════════
   DEV DEBASISH — Portfolio Stylesheet (Complete Rebuild)
   ═══════════════════════════════════════════════════════════ */

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

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --bg-color: #050505;
  --text-main: #f0f0f0;
  --text-muted: #888888;
  --accent: #00e5ff;
  --accent-green: #B6FF00;
  --font-ui-body: 'Inter', sans-serif;
  --font-display: 'Oswald', sans-serif;
}

body {
  background-color: #000000;
  color: var(--text-main);
  font-family: var(--font-ui-body);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Aura Background (Disabled for Pure Black Studio Aesthetic) ── */
.aura-bg {
  display: none;
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,229,255,0.4);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 6px var(--accent);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.resume-btn {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0,229,255,0.2);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 4rem 3.5rem 4rem;
  overflow: hidden;
  background-color: #000000;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.massive-text {
  font-family: var(--font-display);
  font-size: clamp(8rem, 19vw, 18rem);
  font-weight: 700;
  letter-spacing: -2px;
  color: rgba(255, 255, 255, 0.09);
  white-space: nowrap;
  line-height: 0.9;
  text-align: center;
  user-select: none;
  animation: hero-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

@keyframes spline-entrance {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(1.35);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -48%) scale(1.425);
    filter: blur(0px);
  }
}

.spline-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(1.425);
  z-index: 5;
  width: 100vw;
  max-width: 1150px;
  height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: spline-entrance 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.spline-container spline-viewer {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1350px;
  margin-top: auto;
  pointer-events: none;
  animation: hero-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

.content-left,
.content-right {
  pointer-events: auto;
}

.content-left p,
.content-right p {
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  line-height: 1.65;
  color: #a1a1aa;
  font-weight: 500;
  text-transform: uppercase;
}

.content-right {
  text-align: right;
}

/* ── Section Title ────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 3.5rem;
  text-transform: uppercase;
}

/* ── Services Section ─────────────────────────────────── */
.services-section {
  position: relative;
  z-index: 2;
  padding: 6rem 4rem;
  content-visibility: auto;
  contain-intrinsic-size: 0 900px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  background: rgba(15, 15, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}

.service-card.clickable {
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.08);
}

.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .card-accent-bar {
  opacity: 1;
}

.card-spline-container {
  width: 100%;
  height: 180px;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.service-card:hover .card-icon-wrap {
  background: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.service-card:hover .card-arrow {
  transform: translateX(5px);
}

.svc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.svc-pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #94a3b8;
  transition: all 0.25s ease;
}

.service-card:hover .svc-pill {
  border-color: rgba(0, 229, 255, 0.2);
  color: #e2e8f0;
}

.service-card p {
  font-size: 0.85rem;
  color: #8892b0;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li i {
  color: var(--accent);
  font-size: 0.75rem;
}

/* ── Featured Projects Section ────────────────────────── */
.projects-section {
  position: relative;
  z-index: 2;
  padding: 6rem 4rem;
  content-visibility: auto;
  contain-intrinsic-size: 0 900px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.project-card {
  background: rgba(15, 15, 22, 0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 15px rgba(0,229,255,0.06);
}

/* Project preview box */
.project-preview-box {
  position: relative;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, rgba(139,92,246,0.06) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-preview-box.fintech {
  background: linear-gradient(135deg, rgba(34,211,238,0.06) 0%, rgba(59,130,246,0.06) 100%);
}

.project-preview-box.security {
  background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(236,72,153,0.06) 100%);
}

.project-preview-overlay {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: 0.8;
}

.project-preview-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.7rem;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 5px;
  color: #e2e8f0;
}

.project-preview-badge i {
  margin-right: 4px;
  color: var(--accent);
}

/* Code preview */
.project-visual-graphic {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.code-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-title {
  font-size: 0.7rem;
  color: #6a6a6a;
  margin-left: 8px;
  font-family: 'Consolas', monospace;
}

.code-snippet {
  padding: 1rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: #c9d1d9;
  font-family: 'Consolas', 'Fira Code', monospace;
  overflow-x: auto;
}

.code-keyword { color: #ff7b72; }
.code-func    { color: #d2a8ff; }
.code-str     { color: #a5d6ff; }

/* Project details */
.project-details {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.85rem;
  color: #8892b0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  color: #94a3b8;
}

.project-links {
  display: flex;
  gap: 0.8rem;
}

.project-btn {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.project-btn.primary {
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--accent);
}

.project-btn.primary:hover {
  background: rgba(0,229,255,0.2);
  box-shadow: 0 0 15px rgba(0,229,255,0.15);
}

.project-btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
}

.project-btn.secondary:hover {
  border-color: rgba(255,255,255,0.25);
  color: #e2e8f0;
}

.project-btn i {
  margin-right: 4px;
}

/* ── Integrations / Tech Stack ────────────────────────── */
.integrations-section {
  position: relative;
  z-index: 2;
  padding: 6rem 4rem;
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

.integrations-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.logo-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.logo-row {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: rgba(15,15,22,0.8);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.logo-row:hover {
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 0 15px rgba(0,229,255,0.1);
  transform: translateY(-3px);
}

.integrations-3d-hub {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: transparent;
  /*
    Very wide radial mask:
    - center 60% is fully opaque (entire 3D structure stays sharp)
    - edges gently fade to transparent so the dark iframe rect dissolves
    - no ring, no border, no hard clip
  */
  -webkit-mask-image: radial-gradient(ellipse 75% 72% at 50% 50%, black 55%, rgba(0,0,0,0.5) 72%, transparent 90%);
  mask-image: radial-gradient(ellipse 75% 72% at 50% 50%, black 55%, rgba(0,0,0,0.5) 72%, transparent 90%);
}

/* Scroll-zoom blocker overlay */
.integrations-3d-hub::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
}

/*
  Iframe is oversized and centered with absolute positioning so:
  - No edge of the iframe is visible at the clipping boundary
  - The 3D object sits in the center, always fully visible
  - mix-blend-mode:screen erases any near-black background pixels from Spline
*/
.integrations-3d-hub iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  z-index: 1;
  mix-blend-mode: screen;
}

/* ── The Stack / Multi-Row Pill Cloud Section ─────────── */
.industries-section {
  position: relative;
  z-index: 2;
  padding: 5rem 0 3rem 0;
  overflow: hidden;
  background: #000000;
}

.stack-header-bar {
  max-width: 1300px;
  margin: 0 auto 2.5rem auto;
  padding: 0 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stack-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #71717a;
  text-transform: uppercase;
  white-space: nowrap;
}

.stack-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stack-marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.stack-marquee-row {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform;
  backface-visibility: hidden;
}

.stack-marquee-row.scroll-left {
  animation: stackScrollLeft 38s linear infinite;
}

.stack-marquee-row.scroll-right {
  animation: stackScrollRight 42s linear infinite;
}

.stack-marquee-row.scroll-left-alt {
  animation: stackScrollLeft 34s linear infinite;
}

.stack-marquee-row.scroll-right-alt {
  animation: stackScrollRight 40s linear infinite;
}

.stack-marquee-row:hover {
  animation-play-state: paused;
}

@keyframes stackScrollLeft {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes stackScrollRight {
  0%   { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.stack-marquee-content {
  display: flex;
  gap: 0.85rem;
  padding-right: 0.85rem;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.62rem 1.4rem;
  background: rgba(16, 16, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: #e4e4e7;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  cursor: default;
}

.stack-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.stack-pill:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.stack-pill:hover .stack-dot {
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ── Dashboard Callout ────────────────────────────────── */
.dashboard-section {
  position: relative;
  z-index: 2;
  padding: 8rem 4rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.massive-gradient-text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.25;
  max-width: 900px;
}

/* ── Breakout Interactive Arcade Section ──────────────── */
.breakout-game-section {
  position: relative;
  z-index: 2;
  padding: 2rem 4rem 6rem 4rem;
  background: #000000;
}

.breakout-game-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(10, 10, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem 2.2rem 2.2rem 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.game-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  user-select: none;
}

.game-tagline {
  display: inline-flex;
  align-items: center;
}

.game-tagline span {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: normal;
  color: #f4f4f5;
}

.game-top-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-top-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
}

.game-top-dots span.active {
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.game-canvas-wrapper {
  width: 100%;
  position: relative;
  cursor: crosshair;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
}

#breakout-canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Get in Touch & Footer Section ────────────────────── */
/* ── Contact Section Swirling Blob Background ─────────── */
@keyframes blobDrift1 {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  33%  { transform: translate(60px,  -40px) scale(1.08); }
  66%  { transform: translate(-30px,  50px) scale(0.95); }
  100% { transform: translate(0px,   0px)   scale(1);    }
}
@keyframes blobDrift2 {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  33%  { transform: translate(-50px,  30px) scale(1.1);  }
  66%  { transform: translate(40px,  -55px) scale(0.92); }
  100% { transform: translate(0px,   0px)   scale(1);    }
}
@keyframes blobDrift3 {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  40%  { transform: translate(35px,   55px) scale(1.05); }
  80%  { transform: translate(-45px, -25px) scale(0.97); }
  100% { transform: translate(0px,   0px)   scale(1);    }
}
@keyframes blobDrift4 {
  0%   { transform: translate(0px,   0px)   scale(1);    }
  50%  { transform: translate(-60px,  40px) scale(1.12); }
  100% { transform: translate(0px,   0px)   scale(1);    }
}

/* Blob container — covers the section exactly */
.git-bg-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Each blob: a blurred ellipse in dark grey tones */
.git-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.git-blob-1 {
  width: 55%;
  height: 80%;
  top: -10%;
  left: -5%;
  background: radial-gradient(ellipse at center,
    rgba(70, 70, 75, 0.75) 0%,
    rgba(40, 40, 45, 0.4) 55%,
    transparent 100%);
  animation: blobDrift1 18s ease-in-out infinite;
}

.git-blob-2 {
  width: 50%;
  height: 75%;
  top: 15%;
  right: -8%;
  background: radial-gradient(ellipse at center,
    rgba(60, 58, 65, 0.7) 0%,
    rgba(35, 33, 40, 0.35) 55%,
    transparent 100%);
  animation: blobDrift2 22s ease-in-out infinite;
  animation-delay: -6s;
}

.git-blob-3 {
  width: 45%;
  height: 60%;
  bottom: -5%;
  left: 30%;
  background: radial-gradient(ellipse at center,
    rgba(55, 55, 60, 0.65) 0%,
    rgba(30, 30, 35, 0.3) 55%,
    transparent 100%);
  animation: blobDrift3 26s ease-in-out infinite;
  animation-delay: -11s;
}

.git-blob-4 {
  width: 35%;
  height: 55%;
  top: 5%;
  left: 45%;
  background: radial-gradient(ellipse at center,
    rgba(50, 48, 55, 0.55) 0%,
    rgba(28, 28, 32, 0.25) 55%,
    transparent 100%);
  animation: blobDrift4 20s ease-in-out infinite;
  animation-delay: -4s;
}

.get-in-touch-section {
  position: relative;
  z-index: 2;
  min-height: 520px;
  padding: 8rem 4rem 3rem 4rem;
  background: #050505;
  overflow: hidden;
  /* Isolate stacking context so absolute children are clipped to this section */
  isolation: isolate;
}

/* ── Background video — fills entire section, no controls visible ── */
.git-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Push Spider-Man toward the right so left text area stays clear */
  object-position: 75% center;
  z-index: 1;
  pointer-events: none;
  opacity: 0.60;
  display: block;
}

/* ── Dark directional overlay — heavier on the left, lighter on right ── */
.git-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.80) 35%,
    rgba(0, 0, 0, 0.50) 65%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

/* ── Blobs above overlay, below content ── */
.git-bg-blobs {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

/* ── All content above everything ── */
.get-in-touch-section > .get-in-touch-container,
.get-in-touch-section > footer {
  position: relative;
  z-index: 4;
}

.get-in-touch-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

/* Left Column */
.git-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.git-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.git-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 4px #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.git-badge-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #d1d5db;
  text-transform: uppercase;
}

.git-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 1.8rem;
  background: linear-gradient(180deg, #FFFFFF 15%, #CFD8DC 48%, #8596A6 75%, #E2E8F0 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7));
}

.git-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #9ca3af;
  max-width: 500px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.git-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.git-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.9rem 1.8rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.git-btn-primary {
  background: #ffffff;
  color: #000000 !important;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}

.git-btn-primary span,
.git-btn-primary i {
  color: #000000 !important;
}

.git-btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
  color: #000000 !important;
}

.git-btn-primary:hover span,
.git-btn-primary:hover i {
  color: #000000 !important;
}

.git-btn-primary i {
  font-size: 1.15rem;
}

.git-btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: #f4f4f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.git-btn-secondary span,
.git-btn-secondary i {
  color: #f4f4f5 !important;
}

.git-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

.git-btn-secondary:hover span,
.git-btn-secondary:hover i {
  color: #ffffff !important;
}

.git-btn-secondary i {
  font-size: 0.95rem;
}

/* Right Column - Card */
.git-right {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.git-card {
  width: 100%;
  max-width: 520px;
  background: rgba(14, 14, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.git-card-row {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.git-card-row:first-child {
  padding-top: 0;
}

.git-card-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.git-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.git-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: #f4f4f5;
  letter-spacing: 0.2px;
}

.git-link {
  text-decoration: none;
  color: #f4f4f5;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.git-link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.git-socials {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.git-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.git-social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* ── Showreel Video Player ─────────────────────────────── */
.git-showreel {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 4rem auto 0;
  padding: 0 2rem;
}

.git-showreel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.git-showreel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.git-showreel-player {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #000;
}

.git-showreel-player video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.git-video-toggle {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
}

.git-video-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

/* Footer Row */
.git-footer {
  margin-top: 6.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2.2rem;
}

.git-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.git-copyright {
  font-size: 0.82rem;
  color: #71717a;
  letter-spacing: 0.3px;
}

.git-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
  flex-wrap: wrap;
}

.git-footer-links a {
  text-decoration: none;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.git-footer-links a:hover {
  color: #ffffff;
}

.git-footer-divider {
  color: rgba(255, 255, 255, 0.12);
  user-select: none;
}

/* ── Modal System ─────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: rgba(15, 15, 22, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 850px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.usecase-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.usecase-card:hover {
  border-color: rgba(0,229,255,0.2);
  background: rgba(255,255,255,0.04);
}

.uc-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.uc-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.uc-content p {
  font-size: 0.78rem;
  color: #8892b0;
  line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .navbar {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none; /* hidden on mobile — no hamburger needed for this portfolio */
  }
  .nav-cta {
    gap: 0.75rem !important;
  }
  .resume-btn {
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
  }

  /* ── Hero ── */
  .hero {
    padding: 5rem 1.2rem 2.5rem 1.2rem;
    min-height: 100svh;
  }
  .massive-text {
    font-size: clamp(2.4rem, 11.5vw, 4.4rem);
    letter-spacing: -1px;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
    margin: 0 auto;
    width: 100%;
  }
  .spline-container {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.15);
    width: 100vw;
    height: 65vh;
    max-height: 520px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .spline-container spline-viewer {
    display: block !important;
    width: 100%;
    height: 100%;
    pointer-events: auto;
  }
  #spline-fallback {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }
  .content-right {
    text-align: left;
  }
  .content-left p,
  .content-right p {
    font-size: 0.75rem;
  }

  /* ── Section titles ── */
  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 2.5rem;
  }

  /* ── Services ── */
  .services-section {
    padding: 3.5rem 1.2rem 2rem 1.2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-card {
    min-height: auto;
  }
  /* 3D Spline Cards on mobile */
  .card-spline-container {
    display: flex !important;
    width: 100%;
    height: 170px;
    margin-bottom: 1.2rem;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
  }

  /* ── Projects ── */
  .projects-section {
    padding: 3.5rem 1.2rem 2rem 1.2rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  /* Fix code snippet overflow in project cards on mobile */
  .project-preview-box {
    overflow: hidden;
  }
  .code-snippet {
    font-size: 0.65rem;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-all;
  }
  .project-visual-graphic {
    overflow: hidden;
  }

  /* ── Integrations / Tech Stack ── */
  .integrations-section {
    padding: 3.5rem 1.2rem 2rem 1.2rem;
  }
  .integrations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .logo-panel {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  /* 3D Glowing Hub on mobile */
  .integrations-3d-hub {
    display: block !important;
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 280px;
    margin: 1rem auto;
    overflow: hidden;
  }
  .integrations-3d-hub iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
  }

  /* ── Stack Marquee ── */
  .stack-marquee-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  }
  .stack-pill {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }

  /* ── Breakout Game ── */
  .breakout-game-section {
    padding: 3.5rem 1.2rem 2rem 1.2rem;
  }
  .breakout-game-container {
    padding: 1.4rem 1rem 1.6rem 1rem;
  }

  /* ── Get in Touch ── */
  .get-in-touch-section {
    padding: 4rem 1.2rem 2rem 1.2rem;
  }
  .get-in-touch-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .git-title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }
  .git-right {
    justify-content: flex-start;
  }
  .git-card {
    max-width: 100%;
    padding: 1.8rem 1.4rem;
  }
  .git-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .git-btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Footer ── */
  .git-footer {
    margin-top: 3rem;
  }
  .git-footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .git-footer-links {
    gap: 0.85rem;
    font-size: 0.78rem;
    flex-wrap: wrap;
  }

  /* ── Dashboard / misc ── */
  .dashboard-section {
    padding: 4rem 1.2rem;
  }
}

/* ── Extra small screens (< 400px) ── */
@media (max-width: 400px) {
  .massive-text {
    font-size: clamp(2rem, 10.5vw, 3.2rem);
    white-space: nowrap;
  }
  .spline-container {
    transform: translate(-50%, -50%) scale(1);
    height: 60vh;
  }
  .spline-container spline-viewer {
    display: block !important;
    width: 100%;
    height: 100%;
  }
  .git-title {
    font-size: 2rem;
  }
  .nav-brand {
    font-size: 0.85rem;
  }
}
