:root {
    --bg-color: #f2f2f2;
    --text-color: #333;
    --card-bg: #fff;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --overlay-bg: rgba(0, 0, 0, 0.7);
  }

  body.dark-mode {
    --bg-color: #1c1c1c;
    --text-color: #f9f9f9;
    --card-bg: #2c2c2c;
    --card-shadow: rgba(255, 255, 255, 0.3);
    --overlay-bg: rgba(0, 0, 0, 0.8);
  }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
  }

  body.dark-mode {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  }
  
  .site-title {
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    margin: 1rem 0 0.2rem;
  }
  .red {
    color: red;
  }

  #themeToggle {
    display: block;
    margin: 0 auto 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: auto;
  }
  
  .project-card {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    animation: fadeIn 0.8s ease forwards;
    border: 2px solid black;
  }
  
  .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-grow: 1;
  }
  
  .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--overlay-bg);
    color: #fff;
    padding: 0.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.9rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }
  
  .project-card:hover .project-info {
    opacity: 1;
  }
  

  /* Status Tags */
  .status {
    position: absolute;
    bottom:  8px;
    right: 8px;
    padding: 2px 6px;
    font-size: 0.8em;
    color: white;
    border-radius: 5px;
  }
  .status.active { background: green; }
  .status.finished { background: blue; }
  .status.inactive { background: darkgray; }
  .status.cancelled { background: red; }

  .project-card:hover .status {
    opacity: 0.2;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
  }
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
  }
  .error {
    color: red;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .project-card:hover {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    border: 2px solid #000000;
    z-index: 100;
  }