/* ============================================================
   ANTIGRAVITY — Design System & Global Styles
   A world-class 3D animation studio portfolio
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Brand Colors */
  --brand-primary: #7B2FBE;
  --brand-primary-hover: #9147D5;
  --brand-primary-glow: rgba(123, 47, 190, 0.35);

  /* Backgrounds */
  --bg-page: #0D0D0D;
  --bg-surface: #1A1A2E;
  --bg-elevated: #24243E;
  --bg-overlay: rgba(13, 13, 13, 0.85);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --text-tertiary: #666666;
  --text-inverse: #0D0D0D;

  /* Accents */
  --accent-teal: #2DD4BF;
  --accent-coral: #FF6B6B;
  --accent-gold: #F5A623;

  /* Borders */
  --border-default: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-active: rgba(123, 47, 190, 0.5);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font Sizes (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 2.5rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);
  --text-hero: clamp(3rem, 2rem + 5vw, 7.5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 72px;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--brand-primary-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-page: 400ms;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-cursor: 500;
  --z-loading: 600;
}

/* ============================================================
   2. BASE RESET & DEFAULTS
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-page);
  overflow-x: hidden;
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

body.loading {
  overflow: hidden;
}

::selection {
  background: var(--brand-primary);
  color: var(--text-primary);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-primary-hover);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ============================================================
   3. FOCUS & ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--brand-primary);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: var(--z-loading);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-nav:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 500;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 500;
}

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-primary) 50%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.text-caption {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

p {
  max-width: 680px;
}

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header .label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.section-header .label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brand-primary);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   6. SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-teal));
  z-index: calc(var(--z-sticky) + 10);
  transition: none;
  will-change: width;
}

/* ============================================================
   7. CUSTOM CURSOR
   ============================================================ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-spring),
    height 0.3s var(--ease-spring),
    border-color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out);
  mix-blend-mode: difference;
  will-change: transform;
  opacity: 0;
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--brand-primary);
  background: rgba(123, 47, 190, 0.1);
}

.custom-cursor .cursor-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
  color: var(--text-primary);
}

.custom-cursor.hovering .cursor-label {
  opacity: 1;
}

@media (hover: none),
(pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* ============================================================
   8. LOADING SCREEN
   ============================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
  animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-bar-container {
  width: 200px;
  height: 2px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-teal));
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease-out);
}

.loading-skip {
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.loading-skip.visible {
  opacity: 1;
}

@keyframes loadingPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ============================================================
   9. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-xl);
  z-index: var(--z-sticky);
  transition: background var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  background: var(--bg-overlay);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border-default);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  z-index: calc(var(--z-overlay) + 1);
  position: absolute;
  left: var(--space-xl);
}

.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-primary), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.nav-pill {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 3px 4px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 6px 32px;
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--brand-primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  background: var(--brand-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.nav-cta .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav-cta:hover .arrow {
  transform: translateX(3px);
}

/* Mobile Nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 1);
  padding: 4px 0;
  position: absolute;
  right: var(--space-xl);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-spring);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu .mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-normal) var(--ease-spring);
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu.open .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu .mobile-link:nth-child(1) {
  transition-delay: 0.05s;
}

.mobile-menu .mobile-link:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-menu .mobile-link:nth-child(3) {
  transition-delay: 0.15s;
}

.mobile-menu .mobile-link:nth-child(4) {
  transition-delay: 0.2s;
}

.mobile-menu .mobile-link:nth-child(5) {
  transition-delay: 0.25s;
}

.mobile-menu .mobile-link:hover,
.mobile-menu .mobile-link.active {
  color: var(--text-primary);
}

@media (max-width: 767px) {
  .nav-pill {
    display: none;
  }

  .nav-cta.desktop-only {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* Dark Nav variant for light backgrounds */
.nav.nav-dark:not(.scrolled) .nav-logo {
  color: var(--text-inverse);
}

.nav.nav-dark:not(.scrolled) .nav-logo .logo-mark {
  color: var(--text-primary);
}

.nav.nav-dark:not(.scrolled) .nav-pill {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.nav.nav-dark:not(.scrolled) .nav-link {
  color: rgba(0, 0, 0, 0.6);
}

.nav.nav-dark:not(.scrolled) .nav-link:hover {
  color: var(--text-inverse);
  background: rgba(0, 0, 0, 0.08);
}

.nav.nav-dark:not(.scrolled) .nav-link.active {
  color: var(--text-primary);
  background: var(--brand-primary);
}

.nav.nav-dark:not(.scrolled) .nav-hamburger span {
  background: var(--text-inverse);
}

/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-primary);
  border: none;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--text-primary);
}

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

.btn-secondary:hover {
  border-color: var(--brand-primary);
  background: rgba(123, 47, 190, 0.1);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

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

.btn .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}

/* ============================================================
   11. CARDS
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

/* ============================================================
   12. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: rgba(123, 47, 190, 0.15);
  color: var(--brand-primary-hover);
  border: 1px solid rgba(123, 47, 190, 0.2);
}

.badge-teal {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-teal);
  border-color: rgba(45, 212, 191, 0.2);
}

.badge-coral {
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent-coral);
  border-color: rgba(255, 107, 107, 0.2);
}

/* ============================================================
   13. FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--accent-coral);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23AAAAAA' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ============================================================
   16. GLOBAL CANVAS BACKGROUND
   ============================================================ */
.global-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   14. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.8) 70%, var(--bg-page) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-xl);
  max-width: 1100px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-lg);
  opacity: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-20deg);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

/* ============================================================
   14b. PORTFOLIO HERO (Reference-image inspired)
   ============================================================ */
.portfolio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

/* Corner bracket decorations */
.portfolio-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.frame-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
  border-width: 0;
}
.frame-tl {
  top: 0; left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
}
.frame-tr {
  top: 0; right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
}
.frame-bl {
  bottom: 0; left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
}
.frame-br {
  bottom: 0; right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
}

/* "Software Developer" label */
.hero-label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 1.2vw, 1.6rem);
  color: #ccc;
  letter-spacing: 0.12em;
  text-transform: none;
  margin-bottom: var(--space-xs);
  text-align: left;
  align-self: flex-start;
  padding-left: var(--space-xl);
  z-index: 2;
}
.hero-label-italic {
  font-style: italic;
  font-weight: 300;
  color: #eee;
}

/* Main "Portfolio" title */
.portfolio-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 8vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(180deg, #FFFFFF 0%, #999999 50%, #555555 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-xl);
  text-shadow: none;
}

.pt-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Orb container (replaces the "o" in Portfolio) */
.pt-orb-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 0.7em;
  height: 0.7em;
  vertical-align: middle;
  margin: 0 -0.02em;
  will-change: transform, opacity;
}

.pt-orb {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #e0d0ff 25%, var(--brand-primary) 60%, #3a1070 100%);
  box-shadow:
    0 0 30px 10px rgba(123, 47, 190, 0.5),
    0 0 60px 20px rgba(123, 47, 190, 0.25),
    inset 0 -5px 15px rgba(0, 0, 0, 0.3);
  animation: orbPulse 3s ease-in-out infinite;
  z-index: 2;
}

.pt-orb-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 190, 0.35) 0%, transparent 70%);
  animation: orbGlow 3s ease-in-out infinite;
  z-index: 1;
}

.pt-orb-hands {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.3em;
  z-index: 3;
  filter: grayscale(0.3) brightness(0.8);
  animation: handsFloat 3s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px 10px rgba(123, 47, 190, 0.5), 0 0 60px 20px rgba(123, 47, 190, 0.25), inset 0 -5px 15px rgba(0, 0, 0, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 40px 15px rgba(123, 47, 190, 0.6), 0 0 80px 30px rgba(123, 47, 190, 0.3), inset 0 -5px 15px rgba(0, 0, 0, 0.3); }
}

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

@keyframes handsFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

/* Signature name — overlaps bottom-right of Portfolio title */
.portfolio-signature {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem);
  font-weight: 600;
  background: linear-gradient(135deg, #b8f200 0%, #7ddf00 40%, #e0ff70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: absolute;
  bottom: -0.15em;
  right: -0.1em;
  z-index: 10;
  line-height: 1;
  white-space: nowrap;
  filter: drop-shadow(0 0 10px rgba(184, 242, 0, 0.3));
  animation: signatureShimmer 4s ease-in-out infinite;
}

@keyframes signatureShimmer {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(184, 242, 0, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(184, 242, 0, 0.5)); }
}

/* Responsive adjustments for portfolio hero */
@media (max-width: 768px) {
  .portfolio-hero {
    padding: var(--space-2xl) var(--space-md);
  }
  .hero-label {
    padding-left: var(--space-md);
    font-size: clamp(0.8rem, 0.7rem + 1vw, 1.2rem);
  }
  .portfolio-title {
    font-size: clamp(3rem, 2.5rem + 5vw, 6rem);
  }
  .portfolio-signature {
    font-size: clamp(1.2rem, 1rem + 1.5vw, 1.8rem);
    bottom: -0.1em;
    right: 0;
  }
  .frame-corner {
    width: 18px;
    height: 18px;
    border-width: 0;
  }
  .frame-tl { border-top-width: 2px; border-left-width: 2px; }
  .frame-tr { border-top-width: 2px; border-right-width: 2px; }
  .frame-bl { border-bottom-width: 2px; border-left-width: 2px; }
  .frame-br { border-bottom-width: 2px; border-right-width: 2px; }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  animation: scrollFadeIn 0.6s 2s forwards;
}

.scroll-indicator.hidden {
  opacity: 0 !important;
  transition: opacity 0.4s var(--ease-out);
}

.scroll-indicator-text {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 0.4;
  }
}

/* ============================================================
   15. CLIENT LOGOS STRIP
   ============================================================ */
.logo-strip {
  padding: var(--space-4xl) 0;
  overflow: hidden;
  position: relative;
}

.logo-strip::before,
.logo-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.logo-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-page), transparent);
}

.logo-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-page), transparent);
}

.logo-strip-label {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.logo-marquee {
  display: flex;
  gap: var(--space-4xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}

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

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  opacity: 0.4;
  transition: opacity var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.logo-item:hover {
  opacity: 0.8;
}

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

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   16. PORTFOLIO GRID
   ============================================================ */
.portfolio-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.filter-tabs {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.filter-tab:hover {
  color: #111111;
  border-color: var(--brand-primary);
}

.filter-tab.active {
  color: #111111;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.filter-tab:hover .repo-list-bg,
.filter-tab.active .repo-list-bg {
  opacity: 1;
  transform: scale(1);
}

.search-wrap {
  position: relative;
  margin-left: auto;
}

.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  padding: 10px 16px 10px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  width: 240px;
  transition: all var(--duration-fast) var(--ease-out);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  width: 300px;
}

.sort-select {
  padding: 10px 36px 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23AAAAAA' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  grid-auto-rows: 320px;
}

.project-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out);
}

.project-tile:hover {
  transform: scale(1.02);
}

.project-tile.featured {
  grid-column: span 2;
}

.project-tile.tall {
  grid-row: span 2;
}

.project-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.project-tile:hover .project-tile-bg {
  transform: scale(1.05);
}

.project-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.1) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity var(--duration-normal) var(--ease-out);
}

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

.project-tile-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  transform: translateY(10px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.project-tile:hover .project-tile-info {
  transform: translateY(0);
  opacity: 1;
}

.project-tile-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.project-tile-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.project-tile-video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.project-tile:hover .project-tile-video {
  opacity: 1;
}

@media (max-width: 1023px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }

  .project-tile.featured {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .project-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .project-tile.featured {
    grid-column: span 1;
  }

  .project-tile.tall {
    grid-row: span 1;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    margin-left: 0;
  }

  .search-input {
    width: 100%;
  }

  .search-input:focus {
    width: 100%;
  }
}

/* ============================================================
   17. PROJECT DETAIL PAGE
   ============================================================ */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero-media {
  position: absolute;
  inset: 0;
}

.project-hero-media img,
.project-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-page) 0%, rgba(13, 13, 13, 0.5) 40%, transparent 70%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) var(--space-xl);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.project-meta-value {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.project-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.project-overview {
  max-width: 800px;
  margin-bottom: var(--space-4xl);
}

.project-overview p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Process Section */
.process-section {
  margin-bottom: var(--space-4xl);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.process-step {
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  counter-increment: step;
  transition: all var(--duration-normal) var(--ease-out);
}

.process-step:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
}

.process-step-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-primary);
  margin-bottom: var(--space-md);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.process-step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Gallery */
.gallery-section {
  margin-bottom: var(--space-4xl);
}

.gallery-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-md) 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  width: 500px;
  max-width: 80vw;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Before / After Slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  cursor: ew-resize;
  margin-bottom: var(--space-4xl);
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider .ba-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0s;
}

.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--text-primary);
  transform: translateX(-50%);
  z-index: 2;
  cursor: ew-resize;
}

.ba-slider .ba-handle::before,
.ba-slider .ba-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  border-radius: 50%;
}

.ba-slider .ba-handle::before {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-label {
  position: absolute;
  top: var(--space-md);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(13, 13, 13, 0.7);
  border-radius: var(--radius-full);
  z-index: 3;
}

.ba-label.before {
  left: var(--space-md);
}

.ba-label.after {
  right: var(--space-md);
}

/* Credits */
.credits-section {
  margin-bottom: var(--space-4xl);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.credit-item {
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}

.credit-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xs);
}

.credit-name {
  font-weight: 500;
}

/* Software Tags */
.software-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.software-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Related Projects */
.related-projects {
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--border-default);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 767px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  color: inherit;
}

.related-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.related-card:hover .related-card-image img {
  transform: scale(1.05);
}

.related-card-body {
  padding: var(--space-lg);
}

.related-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* ============================================================
   18. CONTACT / BRIEF FORM
   ============================================================ */
.contact-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  min-height: 100vh;
}

.form-wizard {
  max-width: 700px;
  margin: 0 auto;
}

.form-progress {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-3xl);
}

.form-progress-step {
  flex: 1;
  height: 4px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.form-progress-step.completed {
  background: var(--brand-primary);
}

.form-progress-step.active {
  background: var(--bg-surface);
}

.form-progress-step.active::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 50%;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
  animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {

  0%,
  100% {
    width: 30%;
  }

  50% {
    width: 70%;
  }
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepFadeIn 0.4s var(--ease-out);
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.form-step-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

/* Type Tiles */
.type-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .type-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.type-tile {
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.type-tile:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.type-tile.selected {
  border-color: var(--brand-primary);
  background: rgba(123, 47, 190, 0.08);
}

.type-tile-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.type-tile-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Budget Range */
.budget-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.budget-tier {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--duration-fast) var(--ease-out);
}

.budget-tier:hover {
  border-color: var(--border-hover);
}

.budget-tier.selected {
  border-color: var(--brand-primary);
  background: rgba(123, 47, 190, 0.08);
}

.budget-tier-label {
  font-weight: 500;
}

.budget-tier-range {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--brand-primary);
  background: rgba(123, 47, 190, 0.05);
}

.file-upload-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.file-upload-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.file-upload-hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.file-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.file-item-name {
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.file-item-remove {
  color: var(--accent-coral);
  cursor: pointer;
  font-size: var(--text-sm);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}

.file-item-remove:hover {
  background: rgba(255, 107, 107, 0.1);
}

/* Summary */
.form-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-default);
}

.summary-label {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.summary-value {
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.gdpr-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.gdpr-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.gdpr-check label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-default);
}

/* Success State */
.form-success {
  text-align: center;
  padding: var(--space-4xl) 0;
  animation: stepFadeIn 0.6s var(--ease-out);
}

.form-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-size: 2rem;
}

.form-success h2 {
  margin-bottom: var(--space-md);
}

.form-success p {
  color: var(--text-secondary);
  margin: 0 auto;
}

/* ============================================================
   19. STUDIO / ABOUT PAGE
   ============================================================ */
.studio-hero {
  padding-top: calc(var(--nav-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  position: relative;
}

.studio-philosophy {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.team-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.team-card:hover .team-card-image img {
  transform: scale(1.05);
}

.team-card-body {
  padding: var(--space-lg);
}

.team-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 2px;
}

.team-card-role {
  font-size: var(--text-sm);
  color: var(--brand-primary);
  margin-bottom: var(--space-sm);
}

.team-card-bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.award-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.award-item:hover {
  border-color: var(--border-hover);
}

.award-year {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.award-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.award-info {
  flex: 1;
}

.award-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.award-org {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.press-item {
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.press-item:hover {
  border-color: var(--border-hover);
}

.press-pub {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.press-headline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.press-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ============================================================
   20. SERVICES PAGE
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: var(--space-2xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  color: inherit;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--brand-primary);
}

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

.service-link .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

/* Service Detail */
.service-detail-hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

.service-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
}

@media (max-width: 767px) {
  .service-detail-content {
    grid-template-columns: 1fr;
  }
}

.use-cases-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.use-case-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  font-size: var(--text-sm);
}

.use-case-item .check {
  color: var(--accent-teal);
  flex-shrink: 0;
}

/* ============================================================
   21. 404 PAGE
   ============================================================ */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-404-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--brand-primary), var(--accent-teal), var(--accent-coral));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  margin-bottom: var(--space-lg);
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.page-404 h2 {
  margin-bottom: var(--space-md);
}

.page-404 p {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
}

.page-404-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* Floating particles BG for 404 */
.page-404-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-404-bg .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--brand-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float404 linear infinite;
}

@keyframes float404 {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================================
   22. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-default);
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: var(--bg-page);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-social-link:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.footer-column-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-default);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ============================================================
   23. FEATURED PROJECTS SECTION
   ============================================================ */
.featured-section {
  padding: var(--space-5xl) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 767px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  color: inherit;
}

.featured-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.featured-card:hover .featured-card-bg {
  transform: scale(1.05);
}

.featured-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.3) 50%, transparent 100%);
}

.featured-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
}

.featured-card-content .badge {
  margin-bottom: var(--space-sm);
}

.featured-card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.featured-card-client {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================================
   24. SERVICES PREVIEW (HOME)
   ============================================================ */
.services-preview {
  padding: var(--space-5xl) 0;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1023px) {
  .services-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-preview-grid {
    grid-template-columns: 1fr;
  }
}

.service-preview-card {
  padding: var(--space-2xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-preview-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  color: inherit;
}

.service-preview-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(123, 47, 190, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.service-preview-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

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

/* ============================================================
   25. CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  margin-bottom: var(--space-md);
}

.cta-content p {
  color: var(--text-secondary);
  margin: 0 auto var(--space-2xl);
  max-width: 500px;
}

/* ============================================================
   26. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 80ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 160ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 240ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(5) {
  transition-delay: 320ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(6) {
  transition-delay: 400ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(7) {
  transition-delay: 480ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(8) {
  transition-delay: 560ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(9) {
  transition-delay: 640ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(10) {
  transition-delay: 720ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(11) {
  transition-delay: 800ms;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(12) {
  transition-delay: 880ms;
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   27. SKELETON LOADING
   ============================================================ */
.skeleton {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.5s infinite;
}

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

  100% {
    transform: translateX(100%);
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-heading {
  height: 32px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-image {
  aspect-ratio: 16/9;
}

/* ============================================================
   28. REDUCED MOTION
   ============================================================ */
@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;
  }

  .hero-title .char {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-stagger>* {
    opacity: 1 !important;
    transform: none !important;
  }

  .logo-marquee {
    animation: none !important;
  }

  .custom-cursor {
    display: none !important;
  }
}

/* ============================================================
   29. PAGE TRANSITION OVERLAY
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-page);
  z-index: var(--z-modal);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   30. MARKDOWN & README STYLES (GitHub HTML format)
   ============================================================ */

.readme-content {
  margin-top: var(--space-md);
  font-size: var(--text-md);
}

.readme-content h1,
.readme-content h2,
.readme-content h3,
.readme-content h4,
.readme-content h5,
.readme-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--text-primary);
  line-height: 1.3;
}

.readme-content h1 {
  font-size: 2em;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 0.3em;
}

.readme-content h2 {
  font-size: 1.5em;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 0.3em;
}

.readme-content h3 {
  font-size: 1.25em;
}

.readme-content p {
  margin-bottom: 1em;
}

.readme-content a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
}

.readme-content a:hover {
  text-decoration-color: var(--accent-teal);
}

.readme-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1em 0;
  display: block;
}

.readme-content code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent-coral);
}

.readme-content pre {
  background: #0d1117;
  padding: 1em;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1em 0;
  border: 1px solid var(--border-default);
}

.readme-content pre code {
  background: transparent;
  padding: 0;
  color: var(--text-secondary);
}

.readme-content blockquote {
  border-left: 4px solid var(--border-default);
  padding-left: 1em;
  margin: 1em 0;
  color: var(--text-tertiary);
  font-style: italic;
}

.readme-content ul,
.readme-content ol {
  margin: 1em 0 1em 2em;
}

.readme-content li {
  margin-bottom: 0.5em;
}

.readme-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.readme-content th,
.readme-content td {
  border: 1px solid var(--border-default);
  padding: 0.5em 1em;
  text-align: left;
}

.readme-content th {
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   31. FLOWING MENU / LIST VIEW
   ============================================================ */

.repo-list-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.repo-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.repo-list-item:hover {
  background: var(--bg-elevated);
  border-color: var(--brand-primary);
  transform: translateX(8px);
}

.list-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.repo-list-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  z-index: 1;
  pointer-events: none;
}

.repo-list-item:hover .repo-list-bg {
  opacity: 1;
  transform: scale(1);
}

.list-item-main {
  flex: 1;
  padding-right: var(--space-xl);
}

.list-item-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  transition: color 0.4s var(--ease-out);
}

.repo-list-item:hover .list-item-title {
  color: #111111;
}

.list-item-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.4s var(--ease-out);
}

.repo-list-item:hover .list-item-desc {
  color: #333333;
}


.list-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.repo-list-item .text-meta {
  transition: color 0.4s var(--ease-out);
}

.repo-list-item:hover .text-meta {
  color: #444444;
}

.repo-list-item .badge {
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.repo-list-item:hover .badge {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #111111 !important;
}

@media (max-width: 768px) {
  .list-item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .list-item-meta {
    width: 100%;
    justify-content: space-between;
  }

  .list-item-main {
    padding-right: 0;
  }
}

/* ============================================================
   32. TEAM / PROFILE CARD
   ============================================================ */
.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.team-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out);
}

.team-card:hover .team-card-image img {
  transform: scale(1.05);
}

.team-card-body {
  padding: var(--space-xl);
}

.team-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.team-card-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.team-card-bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

/* ============================================================
   33. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.08), rgba(45, 212, 191, 0.08));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.contact-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(123, 47, 190, 0.15);
  color: inherit;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.contact-card-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.contact-card-action {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.contact-card-action .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.contact-card:hover .contact-card-action .arrow {
  transform: translateX(4px);
}

.contact-card--info {
  cursor: default;
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Email Heading */
.contact-email-link {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-primary), var(--accent-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: filter var(--duration-normal) var(--ease-out);
  display: inline-block;
}

.contact-email-link:hover {
  filter: brightness(1.3);
}