/* Define font faces */
@font-face {
    font-family: 'Josefin Sans';
    src: url('/assets/fonts/Josefin_Sans/JosefinSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Josefin Sans';
    src: url('/assets/fonts/Josefin_Sans/JosefinSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 700;
    font-style: italic;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Reddit Mono';
    src: url('/assets/fonts/Reddit_Mono/RedditMono-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Space Mono';
    src: url('/assets/fonts/Space_Mono/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Space Mono';
    src: url('/assets/fonts/Space_Mono/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Space Mono';
    src: url('/assets/fonts/Space_Mono/SpaceMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Space Mono';
    src: url('/assets/fonts/Space_Mono/SpaceMono-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
  }
  
  /* Critical CSS - Loads first */
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  body {
      font-family: 'Reddit Mono', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background-color: #1a1a1a;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      margin: 0;
      line-height: 1.6;
  }
  
  .container {
      width: 100%;
      max-width: 1200px;
      border-radius: 10px;
      padding: 20px;
      margin: 0 auto;
  }
  
  /* Header Section */
  .header {
      display: flex;
      width: 100%;
      align-items: center;
      gap: 40px;
      margin-bottom: 30px;
      flex-wrap: wrap;
  }
  
  .profile-img {
      width: 200px;
      height: 200px;
      border-radius: 10px;
      overflow: hidden;
      border: 2px solid #444;
      flex-shrink: 0;
  }
  
  .profile-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
  }
  
  .header-text {
      flex: 1;
      min-width: 300px;
  }
  
  .header-text h1 {
      font-size: clamp(1.8rem, 4vw, 2.5rem);
      margin-bottom: 10px;
      color: #fff;
      line-height: 1.2;
      font-family: 'Josefin Sans', serif;
  }
  
  .header-text p {
      margin-bottom: 8px;
      font-size: 1.1rem;
  }
  
  .header-text a {
      color: #1e90ff;
      text-decoration: none;
      transition: color 0.2s ease;
  }
  
  .header-text a:hover {
      color: #63b3ff;
      text-decoration: underline;
  }
  
  /* About Section */
  .about {
      margin: 2rem 0;
  }
  
  .about h2 {
      font-size: 1.8rem;
      margin-bottom: 1.2rem;
      color: #ffa500;
      font-family: 'Josefin Sans', serif;
      font-weight: 600;
  }
  
  .about p {
      margin-bottom: 1.2rem;
  }
  
  .about ul {
      margin: 1rem 0 1.5rem 2rem;
  }
  
  .about li {
      margin-bottom: 0.5rem;
      position: relative;
  }
  
  /* Links Section */
  .links {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      justify-content: center;
      margin: 3rem 0;
  }
  
  .links a {
      text-decoration: none;
      background: #444;
      color: #fff;
      padding: 12px 25px;
      border-radius: 5px;
      font-size: 1rem;
      text-align: center;
      transition: all 0.3s ease;
      border: 1px solid transparent;
  }
  
  .links a:hover,
  .links a:focus {
      background: #1e90ff;
      transform: translateY(-3px);
      box-shadow: 0 4px 8px rgba(30, 144, 255, 0.3);
      outline: none;
  }
  
  /* Footer */
  footer {
      text-align: center;
      padding: 15px;
      border-top: 1px solid #444;
      margin-top: 30px;
      font-size: 0.9rem;
      color: #aaa;
      font-family: 'Space Mono', monospace;
  }
  
  #visitor-counter {
      margin-top: 10px;
      font-size: 0.8rem;
      color: #aaa;
  }
  
  /* [Rest of your CSS remains the same] */
/* Print Styles */
@media print {
    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
    }

    .links {
        display: none;
    }

    a {
        text-decoration: underline;
        color: #000 !important;
    }

    .container {
        padding: 0;
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .header-text {
        text-align: center;
    }

    .about ul {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .header-text p {
        font-size: 1rem;
    }

    .links a {
        padding: 10px 15px;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Animation for interactive elements */
@media (prefers-reduced-motion: no-preference) {
    .links a {
        transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    }
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #1e90ff;
    outline-offset: 2px;
}