/* =========================================================
   RUDRA SINGH PORTFOLIO — STYLESHEET
   Apple-grade Aesthetics, Glassmorphism, Cinematic Motion
   ========================================================= */

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

:root {
  --bg-dark: #070605;
  --bg-card: rgba(16, 13, 10, 0.72);
  --bg-card-hover: rgba(24, 20, 16, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(245, 158, 11, 0.35);
  
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;
  --color-accent-dark: #d97706;
  --color-orange: #f97316;
  --color-glow: rgba(245, 158, 11, 0.28);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);

  --font-display: 'Big Shoulders Display', 'Syne', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #080706;
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

/* =========================================================
   Preloader
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #18120b 0%, #080706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 90%;
  max-width: 320px;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.15);
  border-top-color: var(--color-accent);
  animation: spin 0.85s linear infinite;
  box-shadow: 0 0 24px var(--color-glow);
}

.loader-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f97316);
  box-shadow: 0 0 14px var(--color-glow);
  transition: width 0.12s ease-out;
  border-radius: 999px;
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
}

#loader-percent {
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-light);
  font-weight: 700;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   Background Fixed Canvas Sequence
   ========================================================= */
.canvas-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: #090807;
}

#animation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.canvas-ambient-lighting {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(245, 158, 11, 0.14) 0%, rgba(13, 10, 8, 0.6) 65%, #080706 100%);
  z-index: 2;
  pointer-events: none;
}

.canvas-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.35) 0%, rgba(8, 7, 6, 0.75) 100%);
  z-index: 3;
  pointer-events: none;
}

/* =========================================================
   Main Website Content Layer
   ========================================================= */
.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Glassmorphism Panel Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-panel:hover {
  border-color: var(--border-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(245, 158, 11, 0.08);
}

/* Section Header Badges & Titles */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent-light);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.05;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #0b0907;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.825rem;
}

.btn-arrow, .btn-arrow-down {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}
.btn:hover .btn-arrow-down {
  transform: translate(2px, 2px);
}

/* =========================================================
   1. Navbar
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: padding 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(10, 8, 6, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-pill-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.5rem 1.4rem;
  background: rgba(22, 18, 14, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--color-accent-light);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(22, 18, 14, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--color-accent);
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--color-accent);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--color-accent);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-nav-menu {
  position: relative;
  margin: 5.25rem 1rem 1rem 1rem;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: rgba(18, 14, 10, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
}

.mobile-nav-drawer.active .mobile-nav-menu {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: var(--color-accent-light);
  padding-left: 0.5rem;
}

.mobile-nav-cta {
  margin-top: 0.25rem;
}

.mobile-cta-btn {
  width: 100%;
  padding: 0.85rem;
  justify-content: center;
  font-size: 0.95rem;
}

.mobile-nav-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-social-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.25s ease;
  padding: 0.25rem 0.5rem;
}

.mobile-social-link:hover {
  color: var(--color-accent-light);
}

.dot-sep {
  color: rgba(245, 158, 11, 0.4);
  font-size: 0.8rem;
}

/* =========================================================
   2. Hero Section
   ========================================================= */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem 1.75rem 3rem 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-header-wrap {
  position: relative;
  text-align: center;
  margin-top: 1rem;
}

.hero-greeting {
  position: absolute;
  top: -1.25rem;
  left: 2%;
  z-index: 5;
}

.greeting-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent-light);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.88;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.25), 0 8px 30px rgba(0, 0, 0, 0.7);
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: flex-end;
  margin-top: auto;
  padding-bottom: 1rem;
}

/* Left Hero Card */
.hero-left-card {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.star-icon {
  color: var(--color-accent);
}

.hero-subheadline {
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right Social Proof Card */
.hero-right-card {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avatars-group {
  display: flex;
  align-items: center;
}

.avatar-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #14110e;
  overflow: hidden;
  margin-left: -10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.avatar-pill:first-child {
  margin-left: 0;
}

.avatar-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-brand {
  background: rgba(22, 18, 14, 0.95);
  border: 2px solid rgba(245, 158, 11, 0.35);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.avatar-brand svg {
  width: 16px;
  height: 16px;
}

.avatar-counter {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0c0a08;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #f59e0b;
}

.proof-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.proof-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.2rem 0 0.35rem 0;
}

.proof-subtext {
  font-size: 0.775rem;
  color: var(--color-accent-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.proof-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-secondary);
}

/* =========================================================
   3. Infinite Marquee Strip
   ========================================================= */
.marquee-strip {
  width: 100%;
  overflow: hidden;
  background: rgba(12, 10, 8, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  animation: marquee-scroll 24s linear infinite;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.star-sep {
  color: var(--color-accent);
  font-size: 1rem;
  text-shadow: 0 0 10px var(--color-accent);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* =========================================================
   4. About Manifesto Section
   ========================================================= */
.about-section {
  padding: 7rem 0 5.5rem 0;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
}

.about-heading {
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.36;
  color: #ffffff;
  margin: 1.75rem 0 1.25rem 0;
  letter-spacing: -0.01em;
  max-width: 900px;
}

.about-description {
  font-size: clamp(0.975rem, 1.35vw, 1.15rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
  max-width: 840px;
}

.about-tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.about-tag-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: var(--color-accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.about-tag-pill:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.highlight-text {
  color: var(--color-accent-light);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.about-cta-group {
  display: flex;
  gap: 1.25rem;
}

/* =========================================================
   5. Client / Brand Logo Strip
   ========================================================= */
.brand-strip {
  padding: 3rem 0 5rem 0;
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.brand-item {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  transition: all 0.3s ease;
  user-select: none;
}

.brand-item:hover {
  color: var(--color-accent-light);
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.brand-bold {
  font-weight: 900;
  letter-spacing: 0.15em;
}

.brand-italic {
  font-style: italic;
  font-weight: 800;
}

/* =========================================================
   6. Projects Section (2x2 Bento Grid)
   ========================================================= */
.projects-section {
  padding: 4rem 0 8rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.project-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #110e0b;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #090807;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-visit svg {
  width: 14px;
  height: 14px;
}

.project-card:hover .btn-visit {
  transform: translateY(0);
}

.expand-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 14, 11, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.expand-btn svg {
  width: 14px;
  height: 14px;
}

.expand-btn:hover {
  background: var(--color-accent);
  color: #0b0907;
  opacity: 1;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.5rem 0.5rem 0.5rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent-light);
  text-transform: uppercase;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =========================================================
   7. Services Section
   ========================================================= */
.services-section,
.skills-section,
.testimonials-section,
.contact-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.services-section {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =========================================================
   8. Skills & Expertise Section — Reference Match
   ========================================================= */
.skills-section {
  position: relative;
  padding: 6.5rem 0 7.5rem 0;
  background: radial-gradient(ellipse at 50% 12%, rgba(245, 158, 11, 0.05) 0%, rgba(7, 6, 5, 1) 70%);
}

.skills-block-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.tools-block-header {
  margin-top: 5.5rem;
}

.focus-block-header {
  margin-top: 5.5rem;
}

.section-tag-gold {
  display: block;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title-ref {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.1;
  text-align: center;
}

.text-gold {
  color: var(--color-accent);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Gold Diamond Divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.85rem auto 1.15rem auto;
  max-width: 260px;
}

.divider-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0) 0%, rgba(245, 158, 11, 0.5) 50%, rgba(245, 158, 11, 0) 100%);
}

.divider-diamond {
  color: var(--color-accent);
  font-size: 0.75rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.section-subtitle-ref {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
}

/* 1. Skill Cards Grid (5 Columns Desktop) */
.skills-grid-5cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

.skill-ref-card {
  position: relative;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease,
              background-color 0.28s ease;
  user-select: none;
}

.skill-ref-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(22, 19, 16, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.12);
}

.skill-ref-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.skill-ref-card:hover .skill-ref-icon-circle {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  transform: scale(1.06);
}

.gold-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  stroke: var(--color-accent);
}

.brand-svg {
  width: 22px;
  height: 22px;
}

.skill-ref-info {
  flex: 1;
}

.skill-ref-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.skill-ref-card:hover .skill-ref-title {
  color: var(--color-accent-light);
}

.skill-ref-desc {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}

/* 2. Tools Grid (5 Columns Desktop) */
.tools-grid-5cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.tool-ref-card {
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.tool-ref-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(22, 19, 16, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.1);
}

.tool-ref-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-ref-icon svg {
  width: 24px;
  height: 24px;
}

.tool-ref-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.tool-ref-card:hover .tool-ref-name {
  color: var(--color-accent-light);
}

/* 3. Areas I Focus On (Continuous Horizontal Strip) */
.focus-horizontal-strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  background: rgba(12, 12, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.focus-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
  gap: 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  user-select: none;
}

.focus-strip-item:last-child {
  border-right: none;
}

.focus-strip-item:hover {
  background: rgba(245, 158, 11, 0.08);
}

.focus-strip-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.focus-strip-item:hover .focus-strip-icon-circle {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--color-accent-light);
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.focus-strip-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

/* 4. Bottom Social / Contact Area */
.closing-connect-wrap {
  text-align: center;
  margin-bottom: 2.25rem;
}

.closing-connect-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.footer-buttons-stack-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  max-width: 800px;
  margin: 0 auto;
}

.footer-buttons-stack-horizontal .footer-pill-btn {
  flex: 1;
  max-width: 240px;
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
}

.footer-bottom-bar-clean {
  text-align: center;
  padding-top: 1.5rem;
}

.desktop-br {
  display: block;
}

/* =========================================================
   9. Testimonials Section
   ========================================================= */
.testimonials-section {
  padding: 6rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-stars {
  color: var(--color-accent);
  letter-spacing: 0.2em;
  font-size: 1.05rem;
}

.testimonial-quote {
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.author-monogram {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.monogram-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0907;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.monogram-orange {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #0b0907;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}

.monogram-amber {
  background: linear-gradient(135deg, #fde047, #ca8a04);
  color: #0b0907;
  box-shadow: 0 4px 16px rgba(202, 138, 4, 0.3);
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* =========================================================
   9. Contact / CTA Section
   ========================================================= */
.contact-section {
  padding: 6rem 0 8rem 0;
}

.contact-container {
  padding: 3.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.form-group select {
  cursor: pointer;
  background-color: #17130f;
}

.form-group select option {
  background-color: #17130f;
  color: #ffffff;
  padding: 0.6rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.btn-submit {
  align-self: flex-start;
  padding: 0.9rem 2.25rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Form Feedback Status Messages */
.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 500;
  animation: fadeInStatus 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-status.active {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.form-status.error a {
  color: var(--color-accent-light);
  text-decoration: underline;
  font-weight: 600;
}

.form-status-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

@keyframes fadeInStatus {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(11, 9, 7, 0.35);
  border-top-color: #0b0907;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

/* =========================================================
   10. NEW PREMIUM FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  padding: 6rem 0 3.5rem 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(26, 20, 14, 0.95) 0%, rgba(8, 7, 6, 0.98) 70%, #050403 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  overflow: hidden;
}

.footer-ambient-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* Three Rounded Action Buttons Stack */
.footer-buttons-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 4rem auto;
}

.footer-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1.05rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              filter 0.25s ease,
              background 0.25s ease;
  user-select: none;
}

.footer-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #ffffff;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.footer-mail-icon {
  width: 22px;
  height: 22px;
  fill: none !important;
}

.footer-btn-label {
  letter-spacing: -0.01em;
}

/* 1. GitHub Pill Button */
.footer-btn-github {
  background: #0f1013;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.footer-btn-github:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.12);
  background: #16181e;
}

/* 2. LinkedIn Pill Button */
.footer-btn-linkedin {
  background: linear-gradient(135deg, #1877f2 0%, #0a66c2 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.35);
}

.footer-btn-linkedin:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
}

/* 3. Email Me Pill Button */
.footer-btn-email {
  background: linear-gradient(90deg, #e63973 0%, #e84a5f 50%, #ea5843 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 20px rgba(230, 57, 115, 0.35);
}

.footer-btn-email:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(230, 57, 115, 0.55);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-pill-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.footer-copyright strong {
  color: var(--text-secondary);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-to-top-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.back-to-top-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--border-accent);
  color: var(--color-accent-light);
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

/* =========================================================
   Scroll Telemetry HUD (Fixed bottom corner)
   ========================================================= */
.scroll-telemetry {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  pointer-events: none;
}

.frame-counter {
  padding: 0.35rem 0.75rem;
  background: rgba(14, 11, 9, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent-light);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.progress-track {
  width: 110px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px var(--color-glow);
  border-radius: 999px;
}

/* =========================================================
   Project Lightbox Modal
   ========================================================= */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-content {
  position: relative;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 14, 11, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-close-btn:hover {
  background: var(--color-accent);
  color: #0b0907;
  transform: rotate(90deg);
}

.modal-image {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* =========================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================= */

/* --- Laptop / Small Desktop (< 1200px) --- */
@media (max-width: 1200px) {
  .skills-grid-5cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .tools-grid-5cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .focus-horizontal-strip {
    grid-template-columns: repeat(5, 1fr);
  }
  .focus-strip-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* --- Tablet Devices (768px – 1024px) --- */
@media (max-width: 1024px) {
  .nav-pill-menu {
    gap: 1.1rem;
    padding: 0.45rem 1.15rem;
  }
  .nav-link {
    font-size: 0.8rem;
  }
  
  .hero-section {
    padding: 6.5rem 1.75rem 2.5rem 1.75rem;
  }
  .hero-title {
    font-size: clamp(4rem, 12vw, 8.5rem);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .skills-grid-5cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid-5cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .focus-horizontal-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* --- Mobile / Tablet Boundary (< 920px) --- */
@media (max-width: 920px) {
  .nav-pill-menu {
    display: none;
  }
  .nav-cta-desktop {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-container {
    padding: 0 1.25rem;
  }
}

/* --- Mobile Devices (320px – 767px) --- */
@media (max-width: 768px) {
  /* Prevent horizontal scrolling */
  html, body, .content-wrapper, .site-footer {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  /* Global Section Spacing */
  .section {
    padding: 4rem 0;
  }
  .section-container {
    padding: 0 1.25rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .section-title {
    font-size: clamp(1.75rem, 7.5vw, 2.6rem);
    line-height: 1.1;
  }

  /* Navbar */
  .navbar {
    padding: 0.85rem 0;
  }
  .navbar.scrolled {
    padding: 0.7rem 0;
  }
  .nav-logo {
    font-size: 1.3rem;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding: 5.5rem 1.25rem 2rem 1.25rem;
    gap: 2rem;
    justify-content: flex-start;
  }
  .hero-header-wrap {
    text-align: left;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .hero-greeting {
    position: static;
    display: inline-block;
    margin-bottom: 0.6rem;
  }
  .greeting-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  .hero-title {
    font-size: clamp(2.85rem, 13vw, 5.2rem);
    text-align: left;
    line-height: 0.95;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0;
  }
  .hero-left-card,
  .hero-right-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }
  .hero-subheadline {
    font-size: 1.1rem;
    line-height: 1.45;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }
  .avatars-group {
    gap: 0.25rem;
  }
  .avatar-pill {
    width: 32px;
    height: 32px;
  }
  .proof-headline {
    font-size: 1.05rem;
  }
  .proof-subtext {
    font-size: 0.8rem;
  }
  .proof-tags {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .tag-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }

  /* Marquee */
  .marquee-strip {
    padding: 0.85rem 0;
  }
  .marquee-content span {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  /* About Section */
  .about-section {
    padding: 4.5rem 0 3rem 0;
  }
  .about-container {
    padding: 0 1.25rem;
  }
  .about-heading {
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    line-height: 1.38;
    margin: 1.25rem 0 0.85rem 0;
  }
  .about-description {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }
  .about-tags-row {
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }
  .about-tag-pill {
    font-size: 0.76rem;
    padding: 0.35rem 0.8rem;
  }
  .about-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .about-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  /* Brand Strip */
  .brand-strip {
    padding: 2rem 0 3rem 0;
  }
  .brand-container {
    gap: 1.25rem;
    justify-content: center;
  }
  .brand-item {
    font-size: 1.15rem;
    letter-spacing: 0.05em;
  }

  /* Projects Section */
  .projects-section {
    padding: 3.5rem 0 4.5rem 0;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-card {
    padding: 1rem;
    border-radius: 16px;
    gap: 1rem;
  }
  .project-media-wrap {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }
  .project-title {
    font-size: 1.15rem;
  }
  .project-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .expand-btn {
    width: 40px;
    height: 40px;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 1;
  }

  /* Services Section */
  .services-section {
    padding: 3.5rem 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .service-card {
    padding: 1.5rem;
    border-radius: 16px;
    gap: 1rem;
  }
  .service-num {
    font-size: 2rem;
  }
  .service-title {
    font-size: 1.2rem;
  }
  .service-desc {
    font-size: 0.875rem;
    line-height: 1.55;
  }
  .service-features {
    font-size: 0.775rem;
    gap: 0.4rem;
  }

  /* Skills & Expertise Section Mobile */
  .skills-section {
    padding: 4.5rem 0;
  }
  .skills-block-header {
    margin-bottom: 2rem;
  }
  .tools-block-header,
  .focus-block-header {
    margin-top: 3.5rem;
  }
  .skills-grid-5cols {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .skill-ref-card {
    padding: 1.1rem 1rem;
    border-radius: 12px;
    gap: 0.85rem;
  }
  .skill-ref-icon-circle {
    width: 36px;
    height: 36px;
  }
  .gold-icon {
    width: 18px;
    height: 18px;
  }
  .brand-svg {
    width: 19px;
    height: 19px;
  }
  .skill-ref-title {
    font-size: 0.9rem;
  }
  .skill-ref-desc {
    font-size: 0.76rem;
  }
  .tools-grid-5cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .tool-ref-card {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    border-radius: 10px;
  }
  .tool-ref-icon {
    width: 20px;
    height: 20px;
  }
  .tool-ref-icon svg {
    width: 20px;
    height: 20px;
  }
  .tool-ref-name {
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .focus-horizontal-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .focus-strip-item {
    padding: 1.15rem 0.4rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .focus-strip-icon-circle {
    width: 32px;
    height: 32px;
  }
  .focus-strip-label {
    font-size: 0.72rem;
  }
  .closing-connect-wrap {
    margin-bottom: 1.75rem;
  }
  .footer-buttons-stack-horizontal {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    gap: 0.85rem;
  }
  .footer-buttons-stack-horizontal .footer-pill-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }

  /* Testimonials Section */
  .testimonials-section {
    padding: 3.5rem 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .testimonial-card {
    padding: 1.5rem;
    border-radius: 16px;
    gap: 1rem;
  }
  .testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .author-name {
    font-size: 0.9rem;
  }

  /* Contact Section */
  .contact-section {
    padding: 3.5rem 0 4.5rem 0;
  }
  .contact-container {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }
  .contact-title {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
  }
  .contact-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .contact-form {
    gap: 1.15rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    min-height: 48px;
    border-radius: 10px;
  }
  .form-group textarea {
    min-height: 120px;
  }
  .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 0.95rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 4.5rem 0 2.5rem 0;
  }
  .footer-buttons-stack {
    max-width: 100%;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  .footer-pill-btn {
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
  }
  .footer-btn-icon {
    width: 22px;
    height: 22px;
  }
  .footer-bottom-bar {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .footer-copyright {
    font-size: 0.8rem;
    text-align: center;
  }
  .back-to-top-btn {
    align-self: center;
  }

  /* Telemetry / HUD Indicator on Mobile */
  .scroll-telemetry {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.6rem;
    max-width: 120px;
    opacity: 0.75;
  }

  /* Lightbox Modal */
  .modal-content {
    padding: 1.25rem;
    margin: 0.75rem;
    width: calc(100% - 1.5rem);
    max-height: 85vh;
    border-radius: 14px;
  }
  .modal-close-btn {
    width: 36px;
    height: 36px;
    top: 0.65rem;
    right: 0.65rem;
  }
}

/* --- Compact Mobile Devices (<= 480px) --- */
@media (max-width: 480px) {
  .section-container {
    padding: 0 1rem;
  }
  .hero-section {
    padding: 5rem 1rem 1.5rem 1rem;
  }
  .hero-title {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }
  .hero-left-card,
  .hero-right-card {
    padding: 1.25rem 1rem;
  }
  .contact-container {
    padding: 1.5rem 1rem;
  }
  .service-card,
  .testimonial-card,
  .project-card {
    padding: 1.15rem 1rem;
  }
  .tools-grid-5cols {
    grid-template-columns: 1fr;
  }
  .focus-horizontal-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.85rem;
  }
  .about-heading {
    font-size: 1.25rem;
  }
  .about-description {
    font-size: 0.88rem;
  }
}

/* --- Small Mobile Devices (320px – 380px) --- */
@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(2.2rem, 13vw, 2.9rem);
  }
  .nav-logo {
    font-size: 1.15rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .contact-title {
    font-size: 1.45rem;
  }
  .watermark-text {
    font-size: 2.15rem;
  }
  .proof-stats {
    text-align: left;
  }
  .proof-tags {
    gap: 0.3rem;
  }
}

/* --- Reduced Motion Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
