*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red: #FF3408;
  --red-glow: rgba(255, 52, 8, 0.45);
  --dark-100: #050505;
  --dark-200: #0a0a0a;
  --dark-300: #121212;
  --border-white: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dark: rgba(255, 255, 255, 0.15);
  --mx: 50%;
  --my: 50%;
}

body {
  background: var(--dark-100);
  background-image: radial-gradient(circle 600px at var(--mx) var(--my), rgba(255, 52, 8, 0.09), transparent 80%);
  color: var(--text-primary);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Hide default cursor on desktop */
@media (hover: hover) {
  body {
    cursor: none;
  }
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Custom Interactive Cursor */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 10px var(--red);
  display: none;
}
.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 52, 8, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 8px rgba(255, 52, 8, 0.03);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: none;
}

/* Cursor Hover States */
.cursor-ring.hover {
  width: 55px;
  height: 55px;
  border-color: var(--red);
  background: rgba(255, 52, 8, 0.08);
  box-shadow: 0 0 15px var(--red-glow), inset 0 0 10px rgba(255, 52, 8, 0.1);
}
.cursor-dot.hover {
  transform: translate(-50%, -50%) scale(1.5);
}

@media (hover: hover) {
  .cursor-dot, .cursor-ring {
    display: block;
  }
}

/* Glassmorphism Main Board */
.card {
  position: relative;
  z-index: 10;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid var(--border-white);
  border-radius: 16px;
  width: 90%;
  max-width: 980px;
  min-height: 540px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 50px rgba(255, 52, 8, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card System Top Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-white);
  background: rgba(0, 0, 0, 0.3);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.header-dot:nth-child(1) { background: var(--red); box-shadow: 0 0 6px var(--red); }
.header-dot:nth-child(2) { background: #ffaa00; }
.header-dot:nth-child(3) { background: #00e575; }

.header-center {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.header-right {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--red);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.live-pulse {
  width: 5px;
  height: 5px;
  background-color: var(--red);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

/* Card Main Body Grid */
.card-body {
  display: grid;
  grid-template-columns: 1fr;
  flex-grow: 1;
  min-width: 0;
}

@media (min-width: 800px) {
  .card-body {
    grid-template-columns: 4.2fr 5.8fr;
  }
}

/* Left Brand Panel */
.panel-brand {
  padding: 3rem 2.5rem;
  border-bottom: 1px solid var(--border-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-width: 0;
}
.panel-brand > div {
  width: 100%;
  min-width: 0;
}

@media (min-width: 800px) {
  .panel-brand {
    border-bottom: none;
    border-right: 1px solid var(--border-white);
  }
}

/* Profile Picture Container with Morphing Glowing frame */
.profile-container {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 2.2rem;
  display: inline-block;
}

.profile-glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%);
  filter: blur(14px);
  opacity: 0.6;
  border-radius: 50%;
  animation: pulseGlow 4s ease-in-out infinite alternate;
  z-index: 1;
}

.profile-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  border: 1px solid rgba(255, 52, 8, 0.35);
  background: #000;
  overflow: hidden;
  z-index: 2;
  box-shadow: 
    0 12px 28px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(255, 52, 8, 0.06);
  animation: morphFrame 8s ease-in-out infinite;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: grayscale(20%) contrast(105%);
}

/* Hover dynamic micro-interactions */
.profile-container:hover .profile-frame {
  border-color: var(--red);
  box-shadow: 
    0 0 25px var(--red-glow),
    inset 0 0 25px rgba(255, 52, 8, 0.25);
}
.profile-container:hover .profile-img {
  transform: scale(1.15);
  filter: grayscale(0%) contrast(110%);
}

@keyframes morphFrame {
  0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
  50% { border-radius: 58% 42% 52% 48% / 46% 58% 42% 54%; }
  100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
}

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

.brand-main h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.brand-main h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
}

.brand-tagline {
  font-family: 'Oswald', sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.brand-meta {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.8;
}
.brand-meta strong {
  color: var(--text-muted);
  font-weight: normal;
}

/* Right Interactive Terminal Panel */
.panel-terminal {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
  min-width: 0;
}
.panel-terminal > div {
  width: 100%;
  min-width: 0;
}

.terminal-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.terminal-title::before {
  content: '>';
  color: var(--red);
  font-weight: bold;
}

/* Pseudo Terminal Screen */
.terminal-screen {
  background: rgba(3, 3, 3, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1.2rem;
  font-size: 0.68rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  min-height: 160px;
  max-height: 160px;
  overflow: hidden;
  width: 100%;
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}
.terminal-log-line {
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-sizing: border-box;
}
.terminal-log-line .success {
  color: #00e575;
}
.terminal-log-line .warning {
  color: #ffaa00;
}
.terminal-log-line .accent-text {
  color: var(--red);
}

.terminal-typewriter-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  border-top: 1px dashed rgba(255,255,255,0.06);
  padding-top: 0.8rem;
}
.terminal-cursor {
  width: 5px;
  height: 12px;
  background-color: var(--red);
  display: inline-block;
  animation: cursorBlink 1s step-end infinite;
  box-shadow: 0 0 5px var(--red);
}
@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* System Progress Wrap */
.progress-container {
  width: 100%;
  margin-bottom: 2.5rem;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.progress-header .label {
  color: var(--text-muted);
}
.progress-header .value {
  color: var(--red);
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255, 52, 8, 0.3);
}

.progress-bar-bg {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 52, 8, 0.2), #fff);
  position: relative;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 2px;
  height: 6px;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

/* Interactive Futuristic Buttons/Links */
.action-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.action-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  z-index: -1;
  transition: transform 0.5s ease;
  opacity: 0.15;
}
.action-btn:hover {
  color: #fff;
  border-color: rgba(255, 52, 8, 0.4);
  box-shadow: 0 4px 15px rgba(255, 52, 8, 0.08);
}
.action-btn:hover::before {
  transform: translate(-50%, -50%) scale(1.4);
}
.action-btn.primary-btn {
  border-color: rgba(255, 52, 8, 0.25);
  color: #fff;
  background: rgba(255, 52, 8, 0.03);
}
.action-btn.primary-btn:hover {
  border-color: var(--red);
  box-shadow: 0 0 15px rgba(255, 52, 8, 0.15);
}

/* Watermark System Footer Outside Card */
.footer-watermark {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-align: right;
  line-height: 1.8;
  z-index: 10;
  pointer-events: none;
}
.footer-watermark strong {
  color: var(--red);
  font-weight: 500;
  text-shadow: 0 0 6px rgba(255, 52, 8, 0.2);
}

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

/* Advanced Responsive Optimizations */
@media (max-width: 800px) {
  body {
    flex-direction: column;
    padding: 2.5rem 1rem;
    min-height: auto;
    overflow-y: auto;
  }
  
  .card {
    width: 100%;
    max-width: 600px;
    min-height: auto;
    margin-bottom: 2rem;
  }
  
  .panel-brand {
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--border-white);
  }
  
  .profile-container {
    margin: 0 auto 1.8rem auto;
    width: 120px;
    height: 120px;
  }
  
  .panel-terminal {
    padding: 2.5rem 2rem;
  }
  
  .footer-watermark {
    position: relative;
    bottom: auto;
    right: auto;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1.5rem 0.6rem;
  }
  
  .panel-brand, .panel-terminal {
    padding: 2rem 1.2rem;
  }
  
  .brand-main h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
  
  .terminal-screen {
    padding: 0.9rem;
    font-size: 0.62rem;
    min-height: 150px;
    max-height: 150px;
  }
  
  .action-links {
    gap: 0.8rem;
  }
  
  .action-btn {
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.68rem;
  }
}
