
    :root {
      --bg: #1a1a1a;
      --card-bg: #2d2d2d;
      --accent: #e63946;
      --text: #fdfdfd;
      --muted: #999;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      padding: 2rem;
      display: flex;
      flex-direction: column;
    }

    html,
    body {
      height: 100%;
    }

    .wrapper {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.5s ease;
    }

    .preloader-logo {
      width: 64px;
      height: 64px;
      animation: spin 1s linear infinite;
      border-radius: 50%;
    }

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

      100% {
        transform: rotate(360deg);
      }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes shineText {
      0% {
        background-position: 200% center;
      }

      100% {
        background-position: -200% center;
      }
    }

    @keyframes slideInLeft {
      from {
        opacity: 0;
        transform: translateX(-30px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes bounce {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-5px);
      }
    }

    header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .logo {
      width: 90px;
      height: 90px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 1rem;
      display: block;
      margin-left: auto;
      margin-right: auto;
    }

    header h1 {
      font-size: 2.5rem;
      background: linear-gradient(120deg, var(--accent) 0%, #ffffff 30%, var(--accent) 60%);
      background-size: 200% auto;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: shineText 2.5s linear infinite;
      display: inline-block;
    }

    header p {
      color: var(--muted);
    }

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

    nav button {
      position: relative;
      background: none;
      border: none;
      color: var(--text);
      font-size: 1rem;
      cursor: pointer;
      padding: 0.5rem 1rem;
      transition: color 0.3s;
    }

    nav button::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      height: 2px;
      width: 100%;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.3s ease;
    }

    nav button:hover::after {
      transform: scaleX(1);
      transform-origin: left;
    }

    nav button.active {
      color: var(--accent);
    }

    section {
      display: none;
      max-width: 100%;
      /*margin: 0 auto;*/
      opacity: 0;
    }

    section.active {
      display: block;
      animation: fadeIn 0.5s ease forwards;
    }

    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 1rem;
      justify-content: center;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }


    .meta {
      display: flex;
      justify-content: flex-start;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .tag,
    .date {
      font-size: 0.75rem;
      padding: 0.2rem 0.6rem;
      border-radius: 12px;
      background-color: #444;
      color: #fff;
      display: inline-block;
      white-space: nowrap;
    }

    .visits {
      font-size: 0.75rem;
      padding: 0.2rem 0.6rem;
      border-radius: 12px;
      background-color: #333;
      color: #fdfdfd;
      display: inline-block;
      white-space: nowrap;
    }

    .tag {
      background-color: #e63946;
      color: #fff;
    }

    .date {
      background-color: #555;
      color: #ccc;
    }

    .project-card {
      background: var(--card-bg);
      padding: 1rem;
      border-radius: 10px;
      transition: all 0.3s ease;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.6s ease forwards;
      overflow: hidden;
      word-wrap: break-word;
      text-decoration: none;
    }

    .project-card:nth-child(1) {
      animation-delay: 0.1s;
    }

    .project-card:nth-child(2) {
      animation-delay: 0.2s;
    }

    .project-card:nth-child(3) {
      animation-delay: 0.3s;
    }

    .project-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 24px rgba(230, 57, 70, 0.25);
    }

    .project-card img {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 0.8rem;
    }

    .project-title {
      font-size: 1.2rem;
      color: var(--accent);
      margin-bottom: 0.5rem;
      animation: slideInLeft 0.6s ease;
      text-decoration: none;
    }

    .project-desc {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .link-list a {
      color: var(--accent);
      display: block;
      margin: 0.5rem 0;
      text-decoration: none;
    }

    footer {
      text-align: center;
      padding: 2rem 1rem 1rem;
      margin-top: 4rem;
      color: var(--muted);
      font-size: 0.9rem;
      border-top: 1px solid #333;
    }

    footer span.heart {
      display: inline-block;
      animation: bounce 1.2s ease infinite;
    }

    @media (min-width: 1000px) {
      .project-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (min-width: 1300px) {
      .project-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 600px) {
      header h1 {
        font-size: 2rem;
      }

      nav {
        flex-direction: column;
        align-items: center;
      }
    }
