/* style.css */

/* Retro Theme Inspired by Classic Apple/PlayStation */
body {
  margin: 0;
  padding: 0;
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  color: #9E3500; /* Palette: Deep Orange/Brown for default text */
  font-family: 'Helvetica', Arial, sans-serif; /* Standard sans-serif, consider pixel font later */
  /* Removed complex background-image for a cleaner look */
  cursor: url('pixel-cursor.svg'), auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-pre-load {
  opacity: 0;
}

.page-loaded {
  opacity: 1;
}

.page-exit {
  opacity: 0;
}

a, button, .button-54, .connect-button, .launchpad-item,
a:hover, button:hover, .button-54:hover, .connect-button:hover, .launchpad-item:hover,
a:active, button:active, .button-54:active, .connect-button:active, .launchpad-item:active,
.social-link:hover, .launchpad-link:hover,
.social-link:active, .launchpad-link:active,
.download-button:hover, .download-button:active,
.copy-button:hover, .copy-button:active,
.file-upload-label:hover, .file-upload-label:active {
  cursor: url('pixel-pointer.svg'), pointer;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FAF0E6;
  background-image: 
    radial-gradient(circle at 10% 10%, #657C6A 0.75%, transparent 1.75%),
    radial-gradient(circle at 30% 30%, #657C6A 0.75%, transparent 1.75%),
    radial-gradient(circle at 50% 50%, #657C6A 0.75%, transparent 1.75%),
    radial-gradient(circle at 70% 70%, #657C6A 0.75%, transparent 1.75%),
    radial-gradient(circle at 90% 90%, #657C6A 0.75%, transparent 1.75%),
    radial-gradient(circle at 20% 80%, #9E3500 0.5%, transparent 1.5%),
    radial-gradient(circle at 80% 20%, #9E3500 0.5%, transparent 1.5%);
  background-size: 90px 90px;
  opacity: 0.35;
  z-index: -1;
  animation: patternShift 18s linear infinite;
  pointer-events: none;
}

@keyframes patternShift {
  0% { background-position: 0px 0px; }
  25% { background-position: 25px 10px; }
  50% { background-position: 50px 25px; }
  75% { background-position: 25px 50px; }
  100% { background-position: 0px 0px; }
}

/* Container to center content */
.container {
  width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #FAF0E6; /* Cream/Eggshell Background (same as body) */
  position: relative;
  min-height: 90vh; /* Make container take up most of the viewport height */
  border: none;
  box-shadow: 0 0 15px rgba(101, 124, 106, 0.2), 0 0 5px rgba(187, 62, 0, 0.1); /* Subtle shadow using site colors */
  border-radius: 0;
}

/* ASCII art header styling */
.ascii-art {
  font-family: monospace;
  white-space: pre;
  font-size: 10px;
  line-height: 1.2;
  color: #657C6A; /* Muted Earthy Green */
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
  animation: asciiReveal 1.2s ease-out;
  display: flex;
  justify-content: center;
}

@keyframes asciiReveal {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Motto subtitle styling */
.motto-subtitle {
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: #657C6A;
  margin: 1rem auto 1.5rem;
  max-width: 80%;
  line-height: 1.6;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.15);
  animation: fadeIn 1.5s steps(5) forwards;
}

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

/* Navigation menu styling */
nav ul {
  list-style-type: none;
  padding: 20px 0; /* Increased height */
  text-align: center;
  background-color: #A2B9A7; /* Palette: Light Muted Green/Gray for Nav */
  margin-bottom: 30px; /* Increased spacing below nav */
  border-radius: 2px; /* Sharper edges */
  border: 1px solid #657C6A; /* Palette: Muted Earthy Green Border for Nav */
  box-shadow: none; /* Remove shadow */
}

nav ul li {
  display: inline;
  margin: 0 8px;
}

nav ul li a {
  text-decoration: none;
  color: #9E3500; /* Palette: Deep Orange/Brown for Nav Links */
  padding: 5px 10px;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: bold;
}

/* Removed hover effect for navigation links */
nav ul li a:hover {
  text-decoration: none;
  background-color: transparent;
  color: inherit;
  box-shadow: none;
  transform: none;
}

/* Content section styling */
.content {
  padding: 0 20px;
  position: relative;
  margin-top: 40px; /* Add more space at the top */
}

.content-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Center items vertically */
  margin: 5px 0; /* Further reduced margin to minimize empty space */
  gap: 40px; /* Slightly reduced gap between flex items */
  padding: 0; /* Removed padding completely */
  background: none;
  border: none;
  box-shadow: none;
}

/* .content::before removed for flatter design */

h1 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #9E3500; /* Palette: Deep Orange/Brown */
  border-bottom: 2px solid #9E3500; /* Palette: Deep Orange/Brown border */
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 20px;
  margin: 20px 0 10px 0;
  color: #657C6A; /* Palette: Muted Earthy Green for H2 */
  letter-spacing: 0.5px;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  color: #9E3500; /* Palette: Deep Orange/Brown */
  text-shadow: none;
  margin-bottom: 8px; /* Further reduced from 15px */
  max-width: 800px;
}

/* Links styling */
a {
  color: #9E3500; /* Palette: Deep Orange/Brown (same as body text) */
  text-decoration: underline; /* Underline to identify as link */
  transition: color 0.2s ease;
  position: relative;
  padding: 0 2px;
}

a:hover {
  color: #657C6A;
  text-decoration: underline;
}

/* a::after removed for simpler retro link style */

/* Feed and recommendation lists */
.feed-list, .recommendation-list {
  list-style-type: none;
  padding: 0;
}

.feed-list li, .recommendation-list li {
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 2px; /* Sharper edges */
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  border: 1px solid #A2B9A7; /* Palette: Light Muted Green/Gray Border */
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: #9E3500; /* Palette: Deep Orange/Brown for list item titles/text */
}

.feed-list li:hover, .recommendation-list li:hover {
  transform: none;
  box-shadow: none;
  background-color: #A2B9A7; /* Palette: Light Muted Green/Gray on hover */
  color: #9E3500; /* Palette: Deep Orange/Brown text on hover */
}

.feed-description, .recommendation-description {
  display: block;
  margin-top: 8px;
  font-style: italic;
  color: #657C6A; /* Palette: Muted Earthy Green */
  border-top: 1px dotted #657C6A; /* Palette: Muted Earthy Green dotted line */
  padding-top: 5px;
  text-shadow: none;
}

/* Social Links List Styling */
.social-links {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.social-links-container {
  padding: 15px 0;
  margin-bottom: 20px;
  background: none;
  border: none;
  box-shadow: none;
}

/* 16-bit Pixel Text Styling */
.pixel-text {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  line-height: 1.5;
  color: #9E3500;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
  transform: perspective(500px) rotateX(10deg);
  letter-spacing: 1px;
  display: inline-block;
}

/* Specific styling for the header pixel text */
.social-links-container > .pixel-text {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Adjust link text when using pixel font */
.link-text.pixel-text {
  font-size: 10px;
  margin-left: 20px;
}

.content-left {
  flex: 1;
  padding-right: 20px;
  background: none;
  border: none;
}

.content-right {
  flex: 1;
  padding-left: 0;
  margin-left: 20px; /* Changed from -40px to 20px to move links to the right */
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 60px; /* Keeping the vertical position the same */
}

.dog-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: none;
  border: none;
}

.dog-image {
  max-width: 100%;
  height: auto;
}

.social-links li {
  margin-bottom: 20px; /* Spacing between items */
  display: flex;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.1s ease;
  width: 100%;
  padding: 5px;
}

/* Security Notice Styling */
.security-notice {
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  border-left: 4px solid #9E3500; /* Palette: Deep Orange/Brown */
  padding: 15px;
  margin: 20px 0;
  border-radius: 2px;
  font-size: 14px;
  color: #657C6A; /* Palette: Muted Earthy Green */
}

/* Launchpad Grid Styling */
.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
  perspective: 1000px;
}

@keyframes gridAppear {
  0% { opacity: 0; transform: translateY(20px) rotateX(10deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

.launchpad-item {
  animation: gridAppear 0.5s backwards;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.launchpad-item:hover {
  transform: scale(1.05) rotate(2deg);
}

/* Add staggered animation delays for each item */
.launchpad-item:nth-child(1) { animation-delay: 0.1s; }
.launchpad-item:nth-child(2) { animation-delay: 0.2s; }
.launchpad-item:nth-child(3) { animation-delay: 0.3s; }
.launchpad-item:nth-child(4) { animation-delay: 0.4s; }
.launchpad-item:nth-child(5) { animation-delay: 0.5s; }
.launchpad-item:nth-child(6) { animation-delay: 0.6s; }
.launchpad-item:nth-child(7) { animation-delay: 0.7s; }
.launchpad-item:nth-child(8) { animation-delay: 0.8s; }

.launchpad-item {
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  border-radius: 2px; /* Sharper edges */
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #A2B9A7; /* Palette: Light Muted Green/Gray Border */
  box-shadow: none;
}

.launchpad-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #A2B9A7; /* Palette: Light Muted Green/Gray on hover */
}

.launchpad-link {
  text-decoration: none;
  color: #9E3500; /* Palette: Deep Orange/Brown */
  display: block;
}

.launchpad-icon {
  font-size: 36px;
  margin-bottom: 15px;
  color: #657C6A; /* Palette: Muted Earthy Green */
}

.launchpad-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.launchpad-description {
  font-size: 14px;
  color: #657C6A; /* Palette: Muted Earthy Green */
}

/* Button-54 Style for all buttons */
.button-54,
button,
.connect-button,
nav ul li a,
.copy-button,
.download-button,
.file-upload-label {
  font-family: "Helvetica", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #657C6A; /* Muted Earthy Green */
  cursor: pointer;
  border: 3px solid #657C6A; /* Muted Earthy Green */
  padding: 0.25em 0.5em;
  box-shadow: 1px 1px 0px 0px #657C6A, 2px 2px 0px 0px #657C6A, 3px 3px 0px 0px #657C6A, 4px 4px 0px 0px #657C6A, 5px 5px 0px 0px #657C6A;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  transition: all 0.1s;
  border-radius: 0; /* Remove rounded corners */
}

/* Button-54 style */
.button-54 {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #657C6A; /* Softer color instead of black */
  cursor: pointer;
  border: 3px solid #657C6A; /* Muted Earthy Green border */
  padding: 0.25em 0.5em;
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  box-shadow: 1px 1px 0px 0px #657C6A, 2px 2px 0px 0px #657C6A, 3px 3px 0px 0px #657C6A, 4px 4px 0px 0px #657C6A, 5px 5px 0px 0px #657C6A;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin: 5px;
}

/* Button hover animations */
.button-54:hover {
  transform: translateY(-3px);
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  color: #657C6A; /* Muted Earthy Green */
  box-shadow: 2px 2px 0px 0px #657C6A, 3px 3px 0px 0px #657C6A, 4px 4px 0px 0px #657C6A, 5px 5px 0px 0px #657C6A, 6px 6px 0px 0px #657C6A;
}

.button-54:active,
.button-54:focus,
.button-54.active-tab,
.connect-button:active,
nav ul li a:active,
.copy-button:active,
.download-button:active,
.file-upload-label:active {
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
}

@media (min-width: 768px) {
  .button-54 {
    padding: 0.25em 0.75em;
  }
}

/* Special styling for social media buttons - Button 54 style */

.connect-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 2px; /* Square buttons to match other buttons */
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  color: #657C6A; /* Muted Earthy Green */
  box-shadow: 1px 1px 0px 0px #657C6A, 2px 2px 0px 0px #657C6A, 3px 3px 0px 0px #657C6A, 4px 4px 0px 0px #657C6A, 5px 5px 0px 0px #657C6A;
  transition: all 0.2s ease;
  border: 3px solid #657C6A; /* Matching button-54 border thickness */
  position: relative;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.connect-button i {
  font-size: 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

/* Text styling - Habbo uses chunky, playful text */
.link-text {
  font-size: 16px;
  font-weight: bold;
  color: #9E3500; /* Deep Orange/Brown */
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  /* Text shadow for that Habbo look */
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
  margin-left: 15px; /* Extra space from button */
  flex: 1;
}

/* Hover effects - Habbo buttons have dramatic hover states */
/* Social link hover and active states - matching button-54 style */
.social-link:hover .connect-button {
  transform: none;
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  color: #657C6A; /* Muted Earthy Green */
  box-shadow: 1px 1px 0px 0px #657C6A, 2px 2px 0px 0px #657C6A, 3px 3px 0px 0px #657C6A, 4px 4px 0px 0px #657C6A, 5px 5px 0px 0px #657C6A;
}

.social-link:hover .link-text {
  color: inherit;
}

/* Active state - matching other buttons */
.social-link:active .connect-button {
  transform: none;
  background-color: #FAF0E6; /* Cream/Eggshell Background */
  color: #657C6A; /* Muted Earthy Green */
  box-shadow: 0px 0px 0px 0px;
  top: 5px;
  left: 5px;
}

/* RSS Feeds Page Styling */
.feed-category {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px dashed #657C6A; /* Muted Earthy Green dashed separator */
}

.feed-category:last-child {
  border-bottom: none;
}

.feed-category h2 {
  text-transform: capitalize; /* Capitalize category names */
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #9E3500; /* Deep Orange/Brown underline */
  display: inline-block;
}

.feed-list {
  list-style: none;
  padding: 0;
}

.feed-item {
  margin-bottom: 25px;
  padding: 15px;
  border: 1px solid #A2B9A7; /* Light Muted Green/Gray */
  background-color: #FAF0E6; /* Cream/Eggshell */
  border-radius: 4px;
}

.feed-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
  color: #9E3500; /* Deep Orange/Brown */
}

.feed-title a {
  color: #9E3500; /* Deep Orange/Brown */
  text-decoration: none;
}

.feed-title a:hover {
  color: #F7AD45; /* Golden Yellow/Orange */
  text-decoration: underline;
}

.feed-url {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.feed-url-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #657C6A; /* Muted Earthy Green */
  border-radius: 4px 0 0 4px;
  background-color: #FAF0E6; /* Cream/Eggshell */
  color: #657C6A; /* Muted Earthy Green */
  font-family: monospace;
  font-size: 14px;
}

.copy-button {
  padding: 8px 12px;
  background-color: #A2B9A7; /* Light Muted Green/Gray */
  border: 1px solid #657C6A; /* Muted Earthy Green */
  border-left: none;
  border-radius: 0 4px 4px 0;
  color: #657C6A; /* Muted Earthy Green */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Removed hover effect for copy-button */

/* OPML Download Button */
.opml-download {
  margin: 20px 0 30px 0;
  padding: 15px;
  background-color: #A2B9A7; /* Light Muted Green/Gray */
  border: 1px solid #657C6A; /* Muted Earthy Green */
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.download-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #657C6A; /* Muted Earthy Green */
  color: #FAF0E6; /* Cream/Eggshell */
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 10px;
  /* Habbo-style isometric effect (simplified) */
  box-shadow:
    0 4px 0 0 #3F4D42, /* Darker shade of Muted Earthy Green */
    4px 2px 0 0 #3F4D42; /* Darker shade of Muted Earthy Green */
  transition: all 0.1s ease;
}

.download-button i {
  margin-right: 8px;
}

/* Removed hover effect for download-button */

.download-button:active {
  transform: translateY(4px);
  box-shadow: none;
}

.download-description {
  color: #657C6A; /* Muted Earthy Green */
  font-style: italic;
  margin: 0;
  max-width: 80%;
}

/* Sound Toggle Button */
.sound-toggle-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.sound-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sound-toggle:hover {
  opacity: 1;
}

/* Speed Reader Custom Styling */
.speed-reader-container {
  border: 3px solid #657C6A;
  padding: 20px;
  border-radius: 0;
  background-color: #FAF0E6;
  box-shadow: 5px 5px 0px 0px #657C6A;
  margin-bottom: 30px;
}

.word-display {
  border: 3px solid #657C6A !important;
  box-shadow: 3px 3px 0px 0px #657C6A !important;
  background-color: #A2B9A7 !important;
  color: #9E3500 !important;
  padding: 20px !important;
  /* Remove the fixed font-size to allow JavaScript control */
  text-align: center !important;
  margin: 15px 0 !important;
  min-height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.speed-control {
  border: 3px solid #657C6A !important;
  background-color: #A2B9A7 !important;
  box-shadow: 3px 3px 0px 0px #657C6A !important;
  padding: 15px !important;
  margin: 15px 0 !important;
  color: #9E3500 !important;
}

#text-input {
  border: 3px solid #657C6A !important;
  background-color: #FAF0E6 !important;
  color: #9E3500 !important;
  padding: 15px !important;
  box-shadow: 3px 3px 0px 0px #657C6A !important;
}

#speed-slider {
  accent-color: #657C6A;
  width: 100%;
  margin: 10px 0;
}

#progress-display {
  color: #657C6A !important;
  font-style: italic;
  margin-top: 10px;
  text-align: center;
}

/* Speed Reader Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

/* Speed Reader Dark Mode */
/* Speed Reader Dark Mode - Container Only */
.speed-reader-container.dark-mode {
  background-color: #1A1A1A !important;
  color: #E0E0E0 !important;
  border-color: #555555 !important;
  box-shadow: 5px 5px 0px 0px #555555 !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Dark mode styling for elements inside the container */

.dark-mode .word-display {
  background-color: #333333 !important;
  color: #A2B9A7 !important;
  border-color: #555555 !important;
  box-shadow: 3px 3px 0px 0px #555555 !important;
}

.dark-mode .speed-control {
  background-color: #333333 !important;
  border-color: #555555 !important;
  color: #E0E0E0 !important;
  box-shadow: 3px 3px 0px 0px #555555 !important;
}

.dark-mode #text-input {
  background-color: #1A1A1A !important;
  color: #E0E0E0 !important;
  border-color: #555555 !important;
  box-shadow: 3px 3px 0px 0px #555555 !important;
}

.dark-mode #progress-display {
  color: #A2B9A7 !important;
}

.dark-mode .button-54 {
  background-color: #333333;
  color: #E0E0E0;
  border-color: #555555;
  box-shadow: 1px 1px 0px 0px #555555, 2px 2px 0px 0px #555555, 3px 3px 0px 0px #555555, 4px 4px 0px 0px #555555, 5px 5px 0px 0px #555555;
}

.dark-mode #dark-mode-btn {
  background-color: #333333;
  color: #A2B9A7;
  border-color: #555555;
}

.dark-mode .button-54:hover {
  background-color: #444444;
  color: #E0E0E0;
  transform: translateY(-3px);
  box-shadow: 2px 2px 0px 0px #555555, 3px 3px 0px 0px #555555, 4px 4px 0px 0px #555555, 5px 5px 0px 0px #555555, 6px 6px 0px 0px #555555;
}

.dark-mode #speed-slider {
  accent-color: #555555;
}

/* Motto Styling */
.motto-container {
  margin: 25px 0 15px 0;
  text-align: center;
  position: relative;
}

.motto {
  font-size: 18px;
  line-height: 1.6;
  color: #9E3500;
  font-weight: 500;
  margin: 0;
  padding: 15px 25px;
  border-top: 1px dashed #657C6A;
  border-bottom: 1px dashed #657C6A;
  position: relative;
}

.motto-highlight {
  color: #9E3500;
  font-weight: bold;
  position: relative;
}

.motto-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(187, 62, 0, 0.3);
}

/* Projects Section Styling */
.projects-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 3px solid #657C6A;
}

.projects-section h2 {
  text-align: center;
  color: #9E3500;
  margin-bottom: 30px;
  font-size: 24px;
  position: relative;
}

.project-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #657C6A;
}

.project-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-title {
  display: block;
  font-family: 'Press Start 2P', cursive;
  color: #9E3500;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
}

.project-title i {
  margin-right: 8px;
  color: #657C6A;
}

.project-list p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 26px; /* Aligns with the text after the icon */
}

/* Service Section Styling */
.service-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 3px solid #657C6A;
}

.service-section h2 {
  text-align: center;
  color: #9E3500;
  margin-bottom: 30px;
  font-size: 24px;
  position: relative;
}

.service-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #657C6A;
}

.service-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-title {
  display: block;
  font-family: 'Press Start 2P', cursive;
  color: #9E3500;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
}

.service-title i {
  margin-right: 8px;
  color: #657C6A;
}

.service-list p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 26px;
}

/* Footer Section Styling */
.footer-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 3px solid #657C6A;
}

.footer-section p {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  text-align: center;
  color: #59595D;
  line-height: 1;
  opacity: 30%;
  text-shadow:
    0 0 5px rgba( 101, 124, 106,1),
    0 0 12px rgba( 101,124,106,0.7),
    0 0 16px rgba( 0,124,106,0.6),
    0 0 20px rgba( 0,124,105,0.4);
  }

.footer-section p:hover {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  text-align: center;
  color: #9E3500;
  line-height: 1;
  opacity: 30%;
  text-shadow:
    0 0 5px rgba( 101, 124, 106,1),
    0 0 12px rgba( 101,124,106,0.7),
    0 0 16px rgba( 0,124,106,0.6),
    0 0 20px rgba( 0,124,105,0.4);
  }


/* Character Profile RPG Styling */
.motto.rpg-container {
  max-width: 800px;
  margin: 0 auto 40px;
  animation: fadeIn 0.8s steps(8) forwards;
  box-sizing: border-box;
}

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

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

/* RPG Character Card Container */
.rpg-container {
  margin-bottom: 40px;
  position: relative;
  image-rendering: pixelated;
}

.character-card {
  border: 4px solid #5D6E5A; /* Replaced red with subdued green */
  background-color: #FAF0E6;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.8s steps(8) forwards;
  max-width: 800px;
  margin: 0 auto;
}

.character-header {
  background-color: #5D6E5A; /* Replaced red with subdued green */
  padding: 8px 15px;
  text-align: center;
  border-bottom: 4px solid #5D6E5A;
}

.char-title {
  font-family: 'Press Start 2P', cursive;
  color: #FAF0E6;
  font-size: 16px;
  margin: 0;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.character-body {
  display: flex;
  padding: 0;
  min-height: 540px;
}

/* Avatar Column */
.avatar-column {
  width: 35%;
  background-color: #657C6A;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 4px solid #9E3500;
  box-sizing: border-box;
}

.avatar-frame {
  width: 90%;
  height: 280px;
  padding: 10px;
  background-color: #5D6E5A; /* Replaced red with subdued green */
  border: 4px solid #FAF0E6;
  margin-bottom: 15px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.name-plate {
  background-color: #5D6E5A; /* Replaced red with subdued green */
  border: 3px solid #FAF0E6;
  padding: 10px;
  width: 90%;
  text-align: center;
  margin-bottom: 5px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.char-name {
  font-family: 'Press Start 2P', cursive;
  color: #FAF0E6;
  font-size: 18px;
  margin: 0 0 8px 0;
  text-shadow: 1px 1px 0 #000;
}

.char-class {
  font-family: 'Press Start 2P', cursive;
  color: #A9B0A0; /* Replaced yellow with light gray-green */
  font-size: 12px;
  margin: 0;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.social-links {
  width: 90%;
  background-color: #FAF0E6;
  border: 3px solid #5D6E5A; /* Replaced red with subdued green */
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.companions-box {
  width: 90%;
  background-color: #FAF0E6;
  border: 3px solid #5D6E5A;
  padding: 6px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.8s steps(5) 0.5s forwards;
  opacity: 0;
}

.social-title {
  font-family: 'Press Start 2P', cursive;
  color: #5D6E5A;
  font-size: 12px;
  text-align: center;
  margin: 0 0 10px 0;
  padding-bottom: 5px;
  border-bottom: 2px dashed #5D6E5A;
}

.companions-title {
  font-family: 'Press Start 2P', cursive;
  color: #5D6E5A;
  font-size: 10px;
  text-align: center;
  margin: 0 0 5px 0;
  padding-bottom: 3px;
  border-bottom: 1px dashed #5D6E5A;
}

.social-buttons {
  display: flex;
  width: 90%;
  flex-direction: column;
  gap: 10px;
}

.social-button {
  display: flex;
  width: 90%;
  align-items: center;
  background-color: #657C6A;
  color: #FAF0E6;
  border: 2px solid #5D6E5A; /* Replaced red with subdued green */
  padding: 8px 10px;
  text-decoration: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  transition: all 0.2s steps(2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.social-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
  background-color: #A9B0A0; /* Replaced yellow with light gray-green */
  color: #FAF0E6;
}

.social-button .icon {
  display: inline-block;
  margin-right: 10px;
  font-size: 16px;
}

/* Stats Column */
.stats-column {
  width: 65%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stats-box {
  border: 3px solid #5D6E5A; /* Replaced red with subdued green */
  background-color: #FAF0E6;
  margin-bottom: 10px;
}

.box-header {
  background-color: #5D6E5A; /* Replaced red with subdued green */
  color: #FAF0E6;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  padding: 8px 12px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.box-content {
  padding: 12px;
}

.box-content p {
  font-size: 14px;
  line-height: 1.5;
  color: #9E3500;
  margin: 0;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-icon {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
}

.skill-name {
  font-family: 'Press Start 2P', cursive;
  color: #9E3500;
  font-size: 12px;
  margin-bottom: 5px;
}

.skill-bar {
  height: 12px;
  background-color: #ddd;
  border: 2px solid #9E3500;
  position: relative;
}

.skill-fill {
  height: 100%;
  background-color: #A9B0A0; /* Replaced yellow with light gray-green */
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* Start at 0 width */
  animation: fillBar 2s steps(10) forwards;
  animation-delay: 0.3s;
}

/* Specific skill animations */
.data-skill {
  animation-name: fillData;
}

.automation-skill {
  animation-name: fillAutomation;
}

.finance-skill {
  animation-name: fillFinance;
}

@keyframes fillBar {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes fillData {
  from { width: 0; }
  to { width: 90%; }
}

@keyframes fillAutomation {
  from { width: 0; }
  to { width: 80%; }
}

@keyframes fillFinance {
  from { width: 0; }
  to { width: 85%; }
}

/* Companions Grid - Character Select Style */
.companions-grid {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 0;
}

.companion-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(93, 110, 90, 0.1);
  border: 1px solid #5D6E5A;
  padding: 2px;
  transition: all 0.2s ease;
  animation: fadeIn 0.8s steps(5) 0.7s forwards;
  opacity: 0;
  aspect-ratio: 1/1;
}

.companion-card:hover {
  background-color: rgba(93, 110, 90, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.companion-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.companion-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

/* Scale up the Linus (dog) image to match other heads */
.companion-image img[src="images/linus-head_transp.png"] {
  transform: scale(1.25);
}

/* Quest Box */
.quest {
  margin-bottom: 15px;
  border-left: 4px solid #A9B0A0; /* Replaced yellow with light gray-green */
  padding-left: 10px;
}

.quest-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.quest-icon {
  margin-right: 8px;
  font-size: 16px;
}

.quest-title {
  font-family: 'Press Start 2P', cursive;
  color: #9E3500;
  font-size: 12px;
}

.quest-desc {
  font-size: 13px;
  color: #5D6E5A;
  line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .rpg-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .character-body {
    flex-direction: column;
  }
  
  .avatar-column {
    width: 100%;
    border-right: none;
    border-bottom: 4px solid #5D6E5A; /* Replaced red with subdued green */
    padding: 15px 10px;
    box-sizing: border-box;
  }
  
  .stats-column {
    width: 100%;
    box-sizing: border-box;
  }
  
  .avatar-frame {
    width: 220px;
    height: 220px;
    margin: 0 auto 15px auto;
  }
  
  .name-plate {
    text-align: center;
    width: 90%;
  }

  .social-links,
  .companions-box {
    max-width: 280px;
    width: 90%;
    margin: 10px auto;
  }

  .stats-box {
    max-width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .container {
    width: 90%;
    margin: 10px auto;
  }
  
  .ascii-art {
    font-size: 8px;
  }

  .character-card {
    max-width: 100%;
  }
  
  /* Simplified project list responsive styling */
  .project-list li {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  
  .project-title {
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;

  }
  
  .content-flex-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .dog-image-container {
    margin: 0 auto;
  }
  
  .content-right {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .ascii-art {
    font-size: 6px;
  }
  
  /* Improved mobile navigation styling */
  nav ul {
    padding: 10px 0;
  }
  
  nav ul li {
    display: block;
    margin: 12px 0;
  }
  
  nav ul li a {
    display: inline-block;
    width: 70%;
    padding: 10px 15px;
  }
  
  .button-54 {
    font-size: 14px;
  }
  
  .content {
    padding: 0 10px;
  }

  .avatar-frame {
    width: 180px;
    height: 180px;
  }

  .social-buttons {
    flex-direction: column;
    width: 90%;
    gap: 10px;
  }

  .social-button {
    width: 90%;
    justify-content: center;
  }

  .stats-box {
    padding: 10px;
  }

  .character-header {
    padding: 6px 10px;
  }

  .char-title {
    font-size: 14px;
  }
}
