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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

body {
  background: #0B0E14;
  color: #E2E8F0;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6
}

::selection {
  background: rgba(96, 165, 250, .25);
  color: #E2E8F0
}

:focus-visible {
  outline: 2px solid #60A5FA;
  outline-offset: 2px;
  border-radius: 4px
}

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

ul,
ol {
  list-style: none
}

img {
  max-width: 100%;
  display: block
}

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

input,
textarea {
  font: inherit;
  color: inherit
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px
}

::-webkit-scrollbar-track {
  background: #0B0E14
}

::-webkit-scrollbar-thumb {
  background: #1E2433;
  border-radius: 3px
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, .27)
}

/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #0B0E14;
  --bg-secondary: #111520;
  --bg-card: #141925;
  --bg-border: #1E2433;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-blue: #60A5FA;
  --accent-blue-dim: #1E3A5F;
  --accent-emerald: #34D399;
  --accent-emerald-dim: #064E3B;
  --accent-violet: #A855F7;
  --accent-violet-dim: #3B0764;
  --accent-amber: #FBBF24;
  --accent-amber-dim: rgba(120, 53, 15, .2);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem
}

@media(min-width:640px) {
  .container {
    padding: 0 1.5rem
  }
}

@media(min-width:1024px) {
  .container {
    padding: 0 2rem
  }
}

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

/* ===== SECTION LABELS ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: .5rem
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2
}

@media(min-width:768px) {
  .section-title {
    font-size: 2.25rem
  }
}

/* ===== CARDS ===== */
.card-base {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all .3s
}

.card-hover:hover {
  border-color: rgba(96, 165, 250, .3);
  box-shadow: 0 10px 40px rgba(96, 165, 250, .05)
}

/* ===== TAGS ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .625rem;
  border-radius: .375rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500
}

.tag-blue {
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
  border: 1px solid rgba(96, 165, 250, .2)
}

.tag-emerald {
  background: var(--accent-emerald-dim);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, .2)
}

.tag-violet {
  background: var(--accent-violet-dim);
  color: var(--accent-violet);
  border: 1px solid rgba(168, 85, 247, .2)
}

.tag-amber {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, .2)
}

.tag-neutral {
  background: var(--bg-border);
  color: var(--text-secondary);
  border: 1px solid var(--bg-border)
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--accent-blue);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: .75rem;
  transition: all .2s
}

.btn-primary:hover {
  background: #93C5FD
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: .75rem;
  transition: all .2s
}

.btn-outline:hover {
  border-color: rgba(96, 165, 250, .5);
  color: var(--accent-blue)
}

/* ===== GRADIENTS ===== */
.gradient-text-blue {
  background: linear-gradient(to right, var(--accent-blue), #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.gradient-text-violet {
  background: linear-gradient(to right, var(--accent-violet), #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden
}

.hero-grid {
  background-image: linear-gradient(rgba(96, 165, 250, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  position: absolute;
  inset: 0;
  opacity: .6;
  pointer-events: none
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none
}

.hero-glow--blue {
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(96, 165, 250, .05)
}

.hero-glow--violet {
  bottom: 33%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  background: rgba(168, 85, 247, .05)
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  border-radius: 9999px;
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .2);
  color: var(--accent-emerald);
  font-size: .875rem;
  font-weight: 500
}

.status-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse 2s infinite
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em
}

@media(min-width:768px) {
  .hero-title {
    font-size: 3.75rem
  }
}

.typed-cursor {
  font-family: var(--font-mono);
  color: var(--accent-blue);
  animation: blink 1.2s step-end infinite
}

.hero-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.hero-text { order: 2; width: 100%; }
.hero-photo { order: 1; width: 100%; max-width: 220px; margin: 0 auto; }
.hero-stats { order: 3; width: 100%; }

@media(min-width:1024px) {
  .hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "text photo"
      "text stats";
    gap: 1.5rem 4rem;
  }
  .hero-text { grid-area: text; order: 0; }
  .hero-photo { grid-area: photo; order: 0; max-width: 100%; margin-bottom: 0; }
  .hero-stats { grid-area: stats; order: 0; }
}

.stats-grid {
  display: none
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media(min-width:1024px) {
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .25rem;
  padding: 1.5rem 1rem
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: var(--font-mono)
}

.stat-label {
  font-size: .75rem;
  color: var(--text-secondary)
}

.code-card {
  grid-column: span 2;
  background: var(--bg-secondary)
}

.code-dots {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-bottom: .75rem
}

.code-dots span {
  width: .75rem;
  height: .75rem;
  border-radius: 50%
}

.code-dots .red {
  background: rgba(239, 68, 68, .7)
}

.code-dots .yellow {
  background: rgba(251, 191, 36, .7)
}

.code-dots .green {
  background: rgba(52, 211, 153, .7)
}

.code-filename {
  margin-left: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted)
}

.code-block {
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.8;
  white-space: pre;
  overflow: hidden
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  transition: color .2s
}

@media (min-width: 768px) {
  .scroll-indicator {
    display: flex;
  }
}

.scroll-indicator:hover {
  color: var(--accent-blue)
}

.scroll-indicator span {
  font-size: .75rem;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase
}

.social-link {
  padding: .5rem;
  border-radius: .5rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all .2s
}

.social-link:hover {
  color: var(--accent-blue);
  background: var(--bg-card);
  border-color: var(--bg-border)
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all .3s
}

.navbar.scrolled {
  background: rgba(11, 14, 20, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-border)
}

.navbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between
}

@media(min-width:640px) {
  .navbar-inner {
    padding: 0 1.5rem
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem
}

.nav-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: rgba(96, 165, 250, .1);
  border: 1px solid rgba(96, 165, 250, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  transition: background .2s
}

.nav-logo:hover .nav-logo-icon {
  background: rgba(96, 165, 250, .2)
}

.nav-logo-text {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s
}

.nav-logo:hover .nav-logo-text {
  color: var(--accent-blue)
}

.nav-logo-text .dot {
  color: var(--accent-blue)
}

.nav-links {
  display: none;
  align-items: center;
  gap: .25rem
}

@media(min-width:768px) {
  .nav-links {
    display: flex
  }
}

.nav-link {
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card)
}

.nav-link.active {
  color: var(--accent-blue);
  background: rgba(96, 165, 250, .1)
}

.nav-cta {
  display: none
}

@media(min-width:768px) {
  .nav-cta {
    display: inline-flex;
    font-size: .875rem;
    padding: .5rem 1rem
  }
}

.nav-toggle {
  display: block;
  padding: .5rem;
  border-radius: .5rem;
  color: var(--text-secondary);
  transition: all .2s
}

.nav-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-card)
}

@media(min-width:768px) {
  .nav-toggle {
    display: none
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--bg-border);
  background: rgba(11, 14, 20, .95);
  backdrop-filter: blur(12px)
}

.mobile-menu.open {
  display: block
}

@media(min-width:768px) {
  .mobile-menu {
    display: none !important
  }
}

.mobile-menu ul {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem
}

.mobile-menu a:not(.btn-primary) {
  display: block;
  padding: .75rem 1rem;
  border-radius: .75rem;
  color: var(--text-secondary);
  transition: all .2s
}

.mobile-menu a:not(.btn-primary):hover {
  color: var(--text-primary);
  background: var(--bg-card)
}

.mobile-menu a:not(.btn-primary).active {
  color: var(--accent-blue);
  background: rgba(96, 165, 250, .1)
}

.mobile-menu .btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  color: var(--bg-primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section--alt {
  background: var(--bg-secondary)
}

/* ===== TECH STACK GRID ===== */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem
}

@media(min-width:768px) {
  .tech-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(min-width:1024px) {
  .tech-grid {
    grid-template-columns: 1fr 1fr 1fr
  }
}

.tech-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem
}

.tech-card-title {
  font-weight: 600;
  font-size: .875rem
}

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

.expertise-strip {
  margin-top: 1.5rem;
  background: linear-gradient(to right, var(--bg-card), var(--bg-secondary), var(--bg-card))
}

.expertise-label {
  font-size: .75rem;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem
}

/* ===== CASE STUDIES ===== */


.case-grid {
  display: grid;
  gap: 1.5rem
}

@media(min-width:1024px) {
  .case-grid {
    grid-template-columns: 2fr 1fr
  }
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: .75rem
}

@media(min-width:640px) {
  .case-meta {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between
  }
}

.case-trio {
  display: grid;
  gap: 1rem
}

@media(min-width:640px) {
  .case-trio {
    grid-template-columns: 1fr 1fr 1fr
  }
}

.case-trio-item {
  background: var(--bg-secondary);
  border-radius: .75rem;
  padding: 1rem;
  border: 1px solid var(--bg-border)
}

.case-trio-label {
  font-size: .75rem;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem
}

.case-trio-text {
  color: var(--text-secondary);
  font-size: .75rem;
  line-height: 1.6
}

.case-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: .75rem
}

.highlight-icon {
  color: var(--accent-blue);
  flex-shrink: 0
}

.highlight-text {
  color: var(--text-secondary);
  font-size: .875rem
}

.highlight-arrow {
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0
}

.mono-label {
  font-size: .75rem;
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem
}

.case-detail {
  display: none
}

.case-detail.active {
  display: grid
}

/* ===== AI INNOVATION ===== */
.ai-showcase {
  background: linear-gradient(to bottom right, rgba(168, 85, 247, .05), var(--bg-card));
  border-color: rgba(168, 85, 247, .2);
  margin-bottom: 2rem
}

.ai-showcase-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem
}

@media(min-width:640px) {
  .ai-showcase-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between
  }
}

.ai-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  background: rgba(168, 85, 247, .1);
  border: 1px solid rgba(168, 85, 247, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-violet)
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem
}

@media(min-width:640px) {
  .workflow-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.workflow-step {
  background: var(--bg-secondary);
  border-radius: .75rem;
  padding: .75rem;
  border: 1px solid var(--bg-border);
  text-align: center
}

.workflow-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent-violet);
  margin-bottom: .5rem
}

.workflow-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .5rem;
  background: rgba(168, 85, 247, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .5rem;
  color: var(--accent-violet)
}

.workflow-title {
  color: var(--text-primary);
  font-size: .75rem;
  font-weight: 500
}

.workflow-desc {
  color: var(--text-muted);
  font-size: .75rem;
  margin-top: .125rem
}

.ai-grid {
  display: grid;
  gap: 1rem
}

@media(min-width:768px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr
  }
}

/* ===== EXPERIENCE ===== */
.exp-layout {
  display: grid;
  gap: 3rem
}

@media(min-width:1024px) {
  .exp-layout {
    grid-template-columns: 2fr 1fr
  }
}

.exp-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem
}

.timeline {
  position: relative
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: .5rem;
  bottom: 0;
  width: 1px;
  background: var(--bg-border)
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: .375rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  background: var(--bg-primary)
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem
}

@media(min-width:640px) {
  .timeline-meta {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between
  }
}

.timeline-title-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap
}

.current-badge {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  color: var(--accent-emerald)
}

.current-badge-dot {
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse 2s infinite
}

.timeline-achievements {
  margin-bottom: 1rem
}

.timeline-achievements li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: var(--text-secondary);
  font-size: .875rem;
  margin-bottom: .375rem
}

.timeline-achievements .check-icon {
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: .125rem
}

.edu-card {
  margin-bottom: 1rem
}

.edu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem
}

.edu-title {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text-primary);
  line-height: 1.3
}

.edu-achievements {
  margin-bottom: .75rem
}

.edu-achievements li {
  color: var(--text-secondary);
  font-size: .75rem;
  margin-bottom: .25rem
}

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

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  gap: 2rem
}

@media(min-width:1024px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr
  }
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem
}

@media(min-width:640px) {
  .form-row {
    grid-template-columns: 1fr 1fr
  }
}

.form-group {
  margin-bottom: 1rem
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .375rem
}

.form-label .required {
  color: #F87171
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-border);
  border-radius: .75rem;
  padding: .75rem 1rem;
  color: var(--text-primary);
  font-size: .875rem;
  transition: border-color .2s
}

.form-input::placeholder {
  color: var(--text-muted)
}

.form-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, .5)
}

textarea.form-input {
  resize: none
}

.form-alert {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .875rem
}

.form-alert--error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .2);
  color: #F87171
}

.form-alert--success {
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .2);
  color: var(--accent-emerald)
}

.success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  gap: 1rem;
  text-align: center
}

.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald)
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.contact-sidebar .card-base {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.avail-dot {
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse 2s infinite;
  flex-shrink: 0
}

.network-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-secondary);
  transition: color .2s
}

.network-link:hover {
  color: var(--accent-blue)
}

.network-icon {
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s
}

.network-link:hover .network-icon {
  border-color: rgba(96, 165, 250, .3)
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--bg-border);
  background: var(--bg-secondary)
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0
}

@media(min-width:640px) {
  .footer-inner {
    flex-direction: row
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem
}

.footer-logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .5rem;
  background: rgba(96, 165, 250, .1);
  border: 1px solid rgba(96, 165, 250, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue)
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: .75rem;
  font-family: var(--font-mono)
}

.back-to-top {
  padding: .5rem;
  border-radius: .5rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all .2s
}

.back-to-top:hover {
  color: var(--accent-blue);
  background: var(--bg-card);
  border-color: var(--bg-border)
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px)
  }

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

@keyframes fadeIn {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .5
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-4px)
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp .6s ease-out forwards
}

.animate-fade-in {
  animation: fadeIn .5s ease-out forwards
}

.animate-bounce {
  animation: bounce 1s infinite
}

.animate-spin {
  animation: spin 1s linear infinite
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out
}

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

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .2s
}

.reveal-delay-3 {
  transition-delay: .3s
}

.reveal-delay-4 {
  transition-delay: .4s
}

/* Color utilities for icon boxes */
.icon-blue {
  color: var(--accent-blue);
  background: rgba(96, 165, 250, .1);
  border-color: rgba(96, 165, 250, .2)
}

.icon-emerald {
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, .1);
  border-color: rgba(52, 211, 153, .2)
}

.icon-violet {
  color: var(--accent-violet);
  background: rgba(168, 85, 247, .1);
  border-color: rgba(168, 85, 247, .2)
}

.icon-amber {
  color: var(--accent-amber);
  background: rgba(251, 191, 36, .1);
  border-color: rgba(251, 191, 36, .2)
}

.text-blue {
  color: var(--accent-blue)
}

.text-emerald {
  color: var(--accent-emerald)
}

.text-violet {
  color: var(--accent-violet)
}

.text-amber {
  color: var(--accent-amber)
}

.border-blue:hover {
  border-color: rgba(96, 165, 250, .3)
}

.border-emerald:hover {
  border-color: rgba(52, 211, 153, .3)
}

.border-violet:hover {
  border-color: rgba(168, 85, 247, .3)
}

.border-amber:hover {
  border-color: rgba(251, 191, 36, .3)
}

.bg-stat-blue {
  background: rgba(96, 165, 250, .05);
  border-color: rgba(96, 165, 250, .2)
}

.bg-stat-emerald {
  background: rgba(52, 211, 153, .05);
  border-color: rgba(52, 211, 153, .2)
}

.bg-stat-violet {
  background: rgba(168, 85, 247, .05);
  border-color: rgba(168, 85, 247, .2)
}

.bg-stat-amber {
  background: rgba(251, 191, 36, .05);
  border-color: rgba(251, 191, 36, .2)
}
/* Responsive Case Headers */
.case-header-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.case-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  order: 1;
}
.case-date-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  order: 2;
  justify-content: flex-start;
}
.case-role-title {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  order: 3;
}

@media (min-width: 768px) {
  .case-header-grid {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.25rem;
    flex-wrap: wrap;
  }
  .case-company-name { order: 1; }
  .case-role-title { order: 2; margin-right: auto; }
  .case-date-badge { order: 3; justify-content: flex-end; }
}
