/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html,
body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #3d4f5d;
  margin: 0;
  padding: 0;
}

/* Top accent bar */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(
    90deg,
    #00a8a8 0%,
    #0077b6 25%,
    #48cae4 50%,
    #2a9d8f 75%,
    #00a8a8 100%
  );
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  text-align: center;
  position: relative;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

/* Main heading (name) */
h1.name {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
  letter-spacing: 0.02em;
  font-family: 'Inter', monospace;
  text-transform: lowercase;
  color: #fffef0;
  background: linear-gradient(135deg, #fffef0 0%, #fef9d8 50%, #fffef0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1.name a {
  color: inherit;
  text-decoration: none;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Blinking cursor */
.cursor {
  color: #ffffff;
  background: transparent;
  -webkit-text-fill-color: #ffffff;
  animation: blink 1s step-end infinite;
  margin-left: 0.1em;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Tagline */
.tagline {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #d0e8e8;
  font-weight: 300;
}

/* Post title (not on home page) */
h1:not(.name) {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  color: #fffef0;
  text-align: center;
}

/* Post date */
.date {
  text-align: center;
  font-size: 1rem;
  color: #d0e8e8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: #d0e8e8;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* Section headers for project categories */
h3.section-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fffef0;
  margin: 3rem 0 1.5rem;
  text-align: left;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid #f4c430;
  padding-bottom: 0.5rem;
}

h3.section-header:first-of-type {
  margin-top: 2rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

nav {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 0;
}

nav a {
  color: #d0e8e8;
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: lowercase;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav a:hover {
  color: #ffffff;
  background-color: rgba(109, 148, 150, 0.2);
  transform: translateY(-2px);
}

/* Section navigation */
.section-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem auto 1.5rem;
  padding: 0.75rem;
  max-width: 600px;
}

.section-nav a {
  color: #d0e8e8;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid #d4a017;
  border-radius: 20px;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.1);
}

.section-nav a:hover {
  color: #ffffff;
  background-color: rgba(212, 160, 23, 0.2);
  border-color: #f4c430;
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTENT CARDS (About page, etc)
   ========================================================================== */

.content {
  margin: 1.5rem auto;
  text-align: left;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-left: 6px solid #d4a017;
  transition: all 0.3s ease;
}

.content:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateX(4px);
  border-left-color: #f4c430;
}

.content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 1rem;
}

.content p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}

.content ul {
  line-height: 1.8;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.content a:hover {
  color: #00a8a8;
  text-decoration: underline;
}

/* ==========================================================================
   PROJECT CARDS (Index page)
   ========================================================================== */

.project {
  margin-bottom: 2rem;
  text-align: left;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-left: 6px solid #d4a017;
  transition: all 0.3s ease;
}

.project:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateX(4px);
  border-left-color: #f4c430;
}

.project h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #0077b6;
}

.project h4 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #666;
  line-height: 1.5;
}

.project img {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.project p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: #333;
}

.project a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project a:hover {
  color: #00a8a8;
  text-decoration: underline;
}

/* ==========================================================================
   CODE BLOCKS
   ========================================================================== */

.content pre,
.content code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.content pre {
  background-color: #2b2b2b !important;
  border: 1px solid #444;
  border-left: 4px solid #f4c430;
  border-radius: 4px;
  padding: 0;
  overflow-x: visible;
  margin: 1.5rem 0;
}

.content pre code {
  display: block;
  padding: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
  background-color: #2b2b2b !important;
}

/* Lighten comment color for better contrast */
.content pre code .hljs-comment {
  color: #b0b0b0 !important;
}

.content code {
  background-color: #f5f5f5;
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
  font-size: 0.85rem;
  color: #f4c430;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  margin-top: 4rem;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #d0e8e8;
}
