/* components.css - Specialized Component Styling */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4) var(--s8);
  border-radius: 6px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all 0.3s var(--ease-out-expo);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--grad-blaugrana);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--crimson-glow), 0 0 40px var(--royal-glow);
}

.btn-secondary {
  border: 2px solid var(--crimson);
  color: var(--crimson);
}

.btn-secondary:hover {
  background: var(--crimson);
  color: white;
}

/* Navigation */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--s4) 0;
  transition: all 0.4s var(--ease-out-expo);
}

#main-nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--border-default);
}

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

.nav-links {
  display: flex;
  gap: var(--s8);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
}

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

.nav-links a.active, .nav-links a:hover {
  color: var(--text-1);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.mono-clock {
  font-family: var(--font-mono);
  color: var(--terminal);
  font-size: 0.85rem;
}

.opportunity-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--allow);
  background: rgba(0, 212, 139, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 139, 0.2);
}

/* Hero Elements */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 80px 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s8);
  width: 100%;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  pointer-events: all;
}

.hero-photo-column {
  position: relative;
  z-index: 10;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 300px);
  font-weight: 800;
  color: white;
  opacity: 0.02;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.hero-label {
  color: var(--terminal);
  font-size: 1.1rem;
  margin-bottom: var(--s4);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: var(--s4);
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-2);
  margin-bottom: var(--s6);
  min-height: 1.6em;
}

.hero-tagline {
  color: var(--text-2);
  margin-bottom: var(--s8);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--s4);
}

.hex-profile-container {
  position: relative;
  width: clamp(250px, 40vw, 450px);
  height: clamp(250px, 40vw, 450px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-profile-container.small-hex {
  width: clamp(200px, 30vw, 300px);
  height: clamp(200px, 30vw, 300px);
  margin: 0 auto;
}

.hex-rings {
  position: absolute;
  width: 130%;
  height: 130%;
  pointer-events: none;
  z-index: 0;
}

.hex-ring {
  transform-origin: center;
}

.outer-ring {
  animation: rotateOuter 20s linear infinite;
}

.mid-ring {
  animation: rotateMid 15s linear infinite reverse;
}

.inner-ring {
  animation: rotateInner 10s linear infinite;
}

@keyframes rotateOuter {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateMid {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateInner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hex-profile-frame {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  background: var(--grad-blaugrana);
  padding: 4px;
  position: relative;
  z-index: 1;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: var(--s4);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  color: transparent; /* hide text */
  position: relative;
  transition: border-color 0.3s ease;
}

.social-icons a::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--text-2);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: background-color 0.3s ease;
}

.social-icons a:nth-child(1)::before {
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/></svg>');
}

.social-icons a:nth-child(2)::before {
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>');
}

.social-icons a:nth-child(3)::before {
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.social-icons a:hover::before {
  background-color: var(--crimson);
}

.social-icons a:hover {
  border-color: var(--crimson);
}

.animated-glow {
  background: conic-gradient(from 0deg, var(--crimson), var(--royal), var(--crimson));
  animation: spinGlow 4s linear infinite;
}

@keyframes spinGlow {
  from { background-angle: 0deg; } /* Standard CSS may not animate conic-gradient natively easily, but we'll use a hack or leave it static */
}

/* Hack to animate conic gradient using before pseudo element */
.animated-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, var(--crimson), var(--royal), var(--crimson));
  animation: spinConic 4s linear infinite;
  z-index: -1;
}

@keyframes spinConic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-img, .knp-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  background: var(--void);
  position: relative;
  z-index: 2;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s6);
}

.bento-card {
  padding: var(--s8);
  display: flex;
  flex-direction: column;
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.cat-name {
  font-family: var(--font-mono);
  color: var(--crimson);
  font-size: 0.8rem;
  margin-bottom: var(--s4);
  text-transform: uppercase;
}

.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.cat-list li {
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-default);
}

@media (max-width: 768px) {
  .span-4, .span-6, .span-8 { grid-column: span 12; }
}

/* Form Styles */
.form-group {
  margin-bottom: var(--s4);
}

input, select, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  padding: var(--s4);
  border-radius: 6px;
  color: var(--text-1);
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 10px var(--crimson-glow);
}

/* Loader Styles */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#universe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.loader-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-phase {
  position: absolute;
  text-align: center;
  transition: opacity 0.5s ease;
}

.loader-phrase {
  font-family: var(--font-display);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 8px;
}

.loader-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.loader-quote, .loader-quote-line2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  color: white;
  line-height: 1.2;
}

.blaugrana-text {
  background: var(--grad-blaugrana-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-attrib {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin-top: 1rem;
}

.knp-logo-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-name {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--terminal);
  min-height: 20px;
}

.scanline {
  width: 0%;
  height: 1px;
  background: var(--terminal);
  box-shadow: 0 0 10px var(--terminal);
  opacity: 0;
  transition: all 0.5s ease;
}

#loader-shards-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.loader-shard {
  position: absolute;
  inset: 0;
  background: var(--void);
}

/* Custom Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--crimson);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Project Cards */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--s8);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-mission {
  font-family: var(--font-mono);
  color: var(--text-3);
  font-size: 0.7rem;
  margin-bottom: var(--s2);
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--allow);
  margin-bottom: var(--s4);
}

.project-title {
  margin-bottom: var(--s2);
}

.project-subtitle {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: var(--s4);
}

.project-desc {
  font-size: 0.95rem;
  margin-bottom: var(--s6);
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: var(--s12);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--s12);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--s12) - 4px);
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--crimson);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--crimson-glow);
}

.timeline-period {
  font-family: var(--font-mono);
  color: var(--crimson);
  font-size: 0.85rem;
  margin-bottom: var(--s2);
  display: block;
}

/* Terminal Window */
.terminal-window {
  background: #0D0D1A;
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* CRT Scanline Effect */
.terminal-window::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.3;
}

.terminal-header {
  background: #1A1A2E;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-cyan);
  position: relative;
  z-index: 3;
}

.terminal-dots {
  display: flex;
  gap: 8px;
  margin-right: 20px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots .red { background: #FF5F56; }
.terminal-dots .yellow { background: #FFBD2E; }
.terminal-dots .green { background: #27C93F; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  color: var(--terminal);
  height: 400px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  scroll-behavior: smooth;
}

/* Terminal Scrollbar */
.terminal-body::-webkit-scrollbar {
  width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--border-cyan);
  border-radius: 10px;
}

.terminal-input-line {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

#terminal-input {
  background: transparent;
  border: none;
  color: var(--terminal);
  padding: 0;
  flex-grow: 1;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

#terminal-input:focus {
  box-shadow: none;
}

.terminal-output {
  white-space: pre-wrap;
  margin-bottom: 8px;
  line-height: 1.4;
}

.terminal-command-line {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 10px;
  border-top: 1px solid rgba(0, 255, 157, 0.1);
  padding-top: 15px;
}

.help-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-col strong {
  color: var(--crimson);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.help-col span {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* Floating Terminal Elements */
.terminal-toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--crimson);
  box-shadow: 0 0 20px var(--crimson-glow);
  padding: 15px 20px;
  border-radius: 8px;
  z-index: 9000;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-1);
}

.toast-icon {
  color: var(--terminal);
  margin-right: 8px;
}

.toast-content span:not(.toast-icon):not(.mobile-hint) {
  color: var(--crimson);
  font-weight: bold;
}

.mobile-hint {
  font-size: 12px;
  color: var(--text-3);
  display: block;
  margin-top: 4px;
}

.floating-terminal-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-default);
  color: var(--terminal);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: bold;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  cursor: pointer;
}

.floating-terminal-btn:hover {
  border-color: var(--crimson);
  box-shadow: 0 0 20px var(--crimson-glow);
  transform: scale(1.05);
}

.floating-terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none; /* Let clicks pass through if not on window */
}

.floating-terminal-overlay.hidden {
  display: none !important;
}

.floating-terminal-window {
  position: absolute;
  bottom: 100px;
  right: 30px;
  width: 600px;
  height: 400px;
  background: #0D0D1A;
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  pointer-events: auto; /* Catch clicks */
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease; /* For maximize */
}

.floating-terminal-window.maximized {
  top: 20px !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
}

.floating-terminal-window .terminal-body {
  flex-grow: 1;
}

.draggable-handle {
  cursor: grab;
}
.draggable-handle:active {
  cursor: grabbing;
}

/* Slide animations */
.slide-up {
  animation: slideUp 0.5s forwards;
}
.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 768px) {
  .floating-terminal-window {
    width: 90vw;
    right: 5vw;
    bottom: 100px;
  }
}

/* Terminal input selector for floating terminal */
#floating-terminal-input {
  background: transparent;
  border: none;
  color: var(--terminal);
  padding: 0;
  flex-grow: 1;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* About Section Styles */
#about .col-left {
  padding-right: 40px;
}

#about .bio-text p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.flex-column-evenly {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: var(--s8);
  height: 100%;
}

.about-visual-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
}

.profile-name-small {
  font-size: 1rem;
  letter-spacing: 2px;
}

.row-stats {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
}

.stat-card {
  flex: 1;
  text-align: center;
  padding: var(--s4);
}

.stat-card .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: white;
}
.stat-card .plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--crimson);
}
.stat-card .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
}

.static-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.fact-card {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: var(--glass);
}

.fact-card .icon {
  font-size: 1.5rem;
}

.fact-card .text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-1);
}

.barca-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

@keyframes crest-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes messi-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.01); }
}

@keyframes messi-gold-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2)); }
  50% { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.5)); }
}

.messi-figure-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
}

.messi-svg {
  width: 220px;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: messi-breathe 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .messi-svg { width: 160px; }
}

.messi-svg.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.messi-radial-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.gold-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #FFD700;
  border-radius: 50%;
  pointer-events: none;
  animation: gold-float 3s ease-out infinite;
}

@keyframes gold-float {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* Star System Tooltip */
.star-tooltip {
  position: fixed;
  width: 240px;
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-default);
  border-top: 3px solid var(--crimson);
  border-radius: 8px;
  padding: 15px;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: tooltip-slide 0.3s ease-out;
}

@keyframes tooltip-slide {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tooltip-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tooltip-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--text-2);
}

.tooltip-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
}

.tooltip-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 10px;
}

.tooltip-stat {
  font-family: var(--font-display);
  font-size: 18px;
  color: #FFD700;
  font-weight: bold;
}

.star-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--border-default);
}

/* Floating Star Animation */
@keyframes star-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
}

