/* ==========================================================================
   Bibhuti.in - Modern Personal Portfolio & Domain Highlights
   Design System & Styling
   ========================================================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Color Palette */
  --bg-base: #08090d;
  --bg-surface: #0f1118;
  --bg-surface-elevated: #151824;
  --bg-glass: rgba(18, 21, 32, 0.65);
  --bg-glass-hover: rgba(26, 30, 46, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(99, 102, 241, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Gradient Accents */
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;

  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-glow-1: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.15), transparent 70%);
  --grad-glow-2: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.12), transparent 70%);
  --grad-glow-3: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.12), transparent 70%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --max-width: 1080px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Base Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Ambient Background Glows & Particles Canvas --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  top: -10vw;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  background: var(--grad-glow-1);
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.glow-2 {
  bottom: -15vw;
  right: -10vw;
  width: 55vw;
  height: 55vw;
  background: var(--grad-glow-2);
  animation: floatAmbient 22s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  top: 35vh;
  left: 30vw;
  width: 40vw;
  height: 40vw;
  background: var(--grad-glow-3);
  opacity: 0.5;
  animation: floatAmbient 26s ease-in-out infinite alternate;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Cursor Spotlight */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* --- Page Layout --- */
.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header / Navigation --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: fadeInDown 0.6s var(--transition-smooth);
  position: relative;
  z-index: 100;
}

/* Brand Group */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-emblem-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-monogram {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.brand:hover .brand-monogram {
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: scale(1.04);
}

.emblem-glow {
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%);
  border-radius: 12px;
  filter: blur(4px);
  opacity: 0.6;
  z-index: -1;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

.domain-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Center Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.header-nav-link {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.header-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Right Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.06);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.78rem;
  font-weight: 500;
  color: #a7f3d0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

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

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.1);
  transition: all var(--transition-fast);
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.header-cta-btn svg {
  transition: transform var(--transition-fast);
}

.header-cta-btn:hover svg {
  transform: translate(2px, -2px);
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0 2rem;
  max-width: 840px;
  margin: 0 auto;
  animation: fadeInUp 0.8s var(--transition-smooth);
}

/* Hero Avatar */
.hero-avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 1rem;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
  display: block;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.hero-avatar-wrapper:hover .hero-avatar-img {
  transform: scale(1.04);
  border-color: var(--accent-cyan);
}

.avatar-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  filter: blur(6px);
  z-index: -1;
  animation: pulseGlow 4s infinite ease-in-out alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 0.9; }
}

.avatar-status-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  border: 2.5px solid var(--bg-base);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.badge-wrapper {
  margin-bottom: 0.85rem;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
}

.sparkle-icon {
  font-size: 0.95rem;
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.name-highlight {
  color: #ffffff;
  font-weight: 700;
}

/* Flipper Carousel */
.roles-carousel-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.25rem;
  margin: 0 auto 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  max-width: 95vw;
}

.roles-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.roles-flipper {
  display: inline-block;
  position: relative;
  min-width: 360px;
  max-width: 100%;
  height: 24px;
  overflow: hidden;
  text-align: left;
}

.role-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--accent-cyan);
  font-weight: 500;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
  white-space: nowrap;
}

.role-item.active {
  opacity: 1;
  transform: translateY(0);
}

.role-item.exiting {
  opacity: 0;
  transform: translateY(-100%);
}

/* Hero CTA Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  transition: all var(--transition-normal);
}

.btn-primary {
  background: #ffffff;
  color: #08090d;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-icon {
  flex-shrink: 0;
}

/* --- Bento Grid Section --- */
.bento-section {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

.section-tag-line {
  text-align: center;
  margin-bottom: 1.25rem;
}

.tag-line-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.12);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

/* Bento Sizing */
.banner-showcase-wrapper {
  grid-column: span 12;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  line-height: 0;
  display: block;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.banner-showcase-wrapper:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(56, 189, 248, 0.15);
}

.banner-showcase-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
  object-fit: cover;
  display: block;
}

/* Bento Sizing */
.bento-grid > .project-card {
  grid-column: span 6;
}

.bento-grid > .card-full-width {
  grid-column: span 12;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  width: 100%;
}

.project-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-link-badge:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.arrow-up-right {
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.project-link-badge:hover .arrow-up-right {
  transform: translate(2px, -2px);
}

.tech-stack-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-cyan {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.icon-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.icon-purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mini-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}

/* Card 4 Status custom styles */
.status-indicator-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.pulse-ring-container {
  position: relative;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.4);
  animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.badge-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.domain-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.domain-info-badge code {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 600;
}

/* --- Connect / Social Links Section --- */
.connect-section {
  margin-bottom: 3.5rem;
}

.connect-box {
  background: linear-gradient(135deg, rgba(26, 31, 48, 0.7) 0%, rgba(15, 17, 24, 0.85) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.connect-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
}

.connect-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.connect-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  width: 100%;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.social-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.social-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.social-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

.social-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-value {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.arrow-icon {
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-card:hover .arrow-icon {
  color: var(--accent-cyan);
  transform: translate(2px, -2px);
}

/* --- Footer --- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --- Toast Notification Component --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 17, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #ffffff;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.1rem;
}

/* --- Entry Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 960px) {
  .social-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .bento-grid > .bento-card {
    grid-column: span 12 !important;
  }

  .site-header {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 580px) {
  .page-wrapper {
    padding: 1.25rem 1rem 2.5rem;
  }

  .hero-avatar-wrapper {
    width: 96px;
    height: 96px;
    margin-bottom: 1.25rem;
  }

  .roles-carousel-wrapper {
    font-size: 0.76rem;
    padding: 0.35rem 0.85rem;
    gap: 0.4rem;
    max-width: 100%;
  }

  .roles-flipper {
    min-width: 240px;
  }

  .site-header {
    padding: 0.65rem 0.9rem;
  }

  .status-pill {
    display: none;
  }

  .brand-role {
    display: none;
  }

  .brand-emblem-wrapper {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .header-cta-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }

  .hero-cta-group {
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .connect-box {
    padding: 1.75rem 1.25rem;
  }

  .social-links-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
  }
}
