/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #1a1a1a;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #4a4a4a;
  padding-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  color: #f09ed0;
  margin-bottom: 0.5rem;
}

header p {
  color: #888;
  font-size: 0.9rem;
}

/* Fieldset sections */
fieldset {
  border: 2px solid #4a4a4a;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: #242424;
}

legend {
  color: #f09ed0;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0 0.5rem;
}

/* Typography */
h2 {
  color: #f09ed0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

h3 {
  color: #f09ed0;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: #f09ed0;
  text-decoration: none;
  border-bottom: 1px dotted #f09ed0;
  transition: all 0.3s ease;
}

a:hover {
  color: #f09ed0;
  border-bottom-color: #f09ed0;
}

/* Code blocks */
code {
  background-color: #1a1a1a;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
  color: #e06c75;
}

pre {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
  border-left: 3px solid #f09ed0;
}

pre code {
  padding: 0;
  background: none;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 2px solid #4a4a4a;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  
  fieldset {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
}

/* Optional: highlight effect on hover */
fieldset:hover {
  border-color: #f09ed0;
  transition: border-color 0.3s ease;
}

/* Add these styles to your existing style.css */

/* Project styling */
.project {
  margin-bottom: 1.5rem;
}

.project:last-child {
  margin-bottom: 0;
}

.tags {
  margin-top: 0.5rem;
}

.tags code {
  margin-right: 0.5rem;
  background-color: #2a2a2a;
  border: 1px solid #4a4a4a;
  display: inline-block;
}

/* Links section styling */
.links {
  font-size: 1.1rem;
}

/* Add these styles to your existing style.css */

/* Loading indicator */
#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in;
}

#loading-indicator.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

#loading-indicator p {
  color: #f09ed0;
  margin-top: 1rem;
  font-size: 1rem;
}

/* Spinner animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #4a4a4a;
  border-top: 4px solid #f09ed0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

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

/* Error message */
.error-message {
  background-color: #2a1a1a;
  border: 2px solid #e06c75;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  animation: slideDown 0.3s ease-out;
}

.error-message.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.error-message h2 {
  color: #e06c75;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.error-message p {
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.error-message p:last-child {
  margin-bottom: 0;
  color: #888;
  font-size: 0.9rem;
}

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

/* Project styling */
.project {
  margin-bottom: 1.5rem;
}

.project:last-child {
  margin-bottom: 0;
}

.tags {
  margin-top: 0.5rem;
}

.tags code {
  margin-right: 0.5rem;
  background-color: #2a2a2a;
  border: 1px solid #4a4a4a;
  display: inline-block;
}

/* Links section styling */
.links {
  font-size: 1.1rem;
}
