:root {
  --primary-text: #333;
  --secondary-text: #666;
  --accent-text: #96a8af;
  --muted-text: #999;
  --white-overlay: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  user-select: none;
  box-sizing: border-box;
  cursor: none;
}

body {
  font-family: "Roboto Mono", monospace;
  font-variation-settings: "wght" 400;
  color: var(--primary-text);
  background: linear-gradient(135deg, #9db7c0 0%, #7ea1ab 50%, #657a82 100%);
  line-height: 1.7;
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

li {
  transform: translateX(3rem);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, #9db7c0, #657a82);
  background-size: cover;
}

.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0.7;
}

.cursor.hover {
  transform: scale(1.8);
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cursor.click {
  transform: scale(0.8);
  border-width: 3px;
}

.fish-bg {
  position: fixed;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  white-space: pre;
  pointer-events: none;
  font: "Fira Code", monospace;
  transition: transform 0.5s linear;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  margin-bottom: 60px;
}

h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 400;
  color: white;
  letter-spacing: 4px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.tagline:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.02);
}

.main-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.status-card {
  background: var(--white-overlay);
  padding: 25px;
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.avatar-section {
  text-align: center;
  margin-bottom: 20px;
}

.avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.status-dot {
  width: 16px;
  height: 16px;
  background: var(--status-color, #747f8d);
  position: absolute;
  bottom: 17px;
  right: 0px;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.avatar-container {
  position: relative;
  display: inline-block;
}

.username {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.status-text {
  color: var(--secondary-text);
  font-size: 14px;
  margin: 8px 0;
  transition: var(--transition-smooth);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.spotify-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #00000020;
}

.spotify-section h3 {
  font-size: 12px;
  color: var(--muted-text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.spotify-section:hover h3 {
  color: var(--accent-text);
}

#art {
  width: 100%;
  max-height: 400px;
  border: 3px solid #798a91;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 768px) {
  #art {
    max-height: 200px;
    background-image: url("https://pbs.twimg.com/media/GZTrYQqbMAA1fxi?format=jpg&name=large");
  }
}

.content-area {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--white-overlay);
  padding: 30px;
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

h2 {
  font-size: clamp(18px, 3vw, 20px);
  color: var(--accent-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

h2::before {
  content: ":>";
}

.about-text {
  color: var(--secondary-text);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: clamp(14px, 2.5vw, 16px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ascii-cat {
  font-size: 10px;
  color: #999;
  white-space: pre;
  margin: 20px 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.link-item {
  background: rgba(245, 245, 245, 0.9);
  padding: 15px;
  text-decoration: none;
  color: var(--secondary-text);
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.link-item:hover {
  background: rgba(228, 234, 239, 0.95);
  font-variation-settings: "wght" 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.guestbook-section {
  margin-top: 40px;
}

.guestbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .main-grid,
  .guestbook-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .container {
    padding: 20px 15px;
  }
  
  .card,
  .status-card,
  .comment-form,
  .comments-container {
    padding: 20px;
  }
  
  .comment-form input,
  .comment-form textarea {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .comment-form button {
    padding: 16px;
    font-size: 18px;
    min-height: 48px;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .link-item {
    padding: 16px;
    font-size: 16px;
    min-height: 48px;
  }
  
  h1 {
    font-size: clamp(28px, 8vw, 36px);
    letter-spacing: 2px;
  }
  
  .cursor {
    display: none !important;
  }
  
  * {
    cursor: auto !important;
  }
}

.comments-container {
  background: var(--white-overlay);
  padding: 25px;
  height: 300px;
  overflow-y: auto;
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.comments-container::-webkit-scrollbar {
  width: 8px;
}

.comments-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.comments-container::-webkit-scrollbar-thumb {
  background: rgba(169, 186, 192, 0.5);
  transition: var(--transition-smooth);
}

.comments-container::-webkit-scrollbar-thumb:hover {
  background: rgba(169, 186, 192, 0.7);
}

.comment-item {
  padding: 15px;
  margin-bottom: 12px;
  background: rgba(245, 245, 245, 0.9);
  border: 2px solid rgba(18, 61, 88, 0.2);
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.comment-item:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  background: rgba(245, 245, 245, 1);
}

.comment-header {
  font-weight: bold;
  color: #a9bac0;
  margin-bottom: 5px;
}

.comment-text {
  color: #666;
  font-size: 14px;
  white-space: pre-wrap;
}

.comment-timestamp {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.comment-form {
  background: var(--white-overlay);
  padding: 25px;
  color: var(--accent-text);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: 2px solid rgba(224, 224, 224, 0.8);
  font-family: inherit;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-form button {
  font-variation-settings: inherit;
  font-family: inherit;
}

.comment-form button:hover {
  background: #8fa5ac;
  font-variation-settings: "wght" 600;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(169, 186, 192, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
}

.comment-form textarea {
  resize: vertical;
  min-height: 80px;
}

.comment-form button {
  width: 100%;
  background: var(--accent-text);
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.comment-form button:disabled {
  background: #ddd;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}

.comment-form button:disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.my-comment {
  border-color: #a9bac0;
}

.visitor-counter {
  text-align: center;
  margin: 40px 0;
  font-size: 14px;
  color: white;
  opacity: 0.8;
  animation: blink 2s ease-in-out infinite;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.visitor-counter:hover {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.error-message {
  background: linear-gradient(135deg, #ffe0e0 0%, #ffd0d0 100%);
  color: #d63031;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 14px;
  border: 1px solid #ff9999;
  box-shadow: 0 2px 8px rgba(214, 48, 49, 0.2);
  animation: slideInError 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.error-message::before {
  content: '⚠️';
  margin-right: 8px;
}

@keyframes slideInError {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
