/* ======================================================
   GLOBAL VARIABLES
   ------------------------------------------------------
   - Centralize colors, spacing, fonts - easy access, good practice
   - Change site theme in ONE place
   - Keeps project pages consistent
====================================================== */

:root {
    --color-primary: #004080;
    --color-accent: #e67e22;
    --color-accent-alt: #007acc;
  
    --color-bg-main: #f7f7f7;
    --color-bg-card: #ffffff;
  
    --color-text-main: #333;
    --color-text-muted: #555;
  
    --radius-sm: 5px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  /* ======================================================
     RESET & BASE
  ====================================================== */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
  }
  
  /* ======================================================
     PORTFOLIO PAGE LAYOUT ONLY
  ====================================================== */
  
  .portfolio section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
  }
  
  /* ======================================================
     HEADERS
  ====================================================== */
  
  header {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--color-primary);
    color: white;
  }
  
  header h1 {
    font-size: 2.5em;
  }
  
  header p {
    margin: 15px 0;
  }
  
  /* ======================================================
     PROJECT GRID & CARDS
  ====================================================== */
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
  }
  
  .project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 10px;
    position: relative;
    overflow: hidden;
  }
  
  .project-card.featured {
    border: 2px solid #bfa34a;
  }
  
  .project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background-color: #f0f0f0;
    border-radius: var(--radius-sm);
  }
  
  .project-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    max-height: 1.4em;
    transition: max-height 0.4s ease 0.8s;
  }
  
  .project-card:hover .project-desc {
    -webkit-line-clamp: unset;
    max-height: 200px;
    margin-bottom: 15px;
  }
  
  /* ======================================================
     BADGES
  ====================================================== */
  
  .badge {
    position: absolute;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 12px;
    color: white;
  }
  
  .badge-top-left {
    top: 10px;
    left: 10px;
    background-color: var(--color-accent);
  }
  
  .badge-in-progress {
    top: 10px;
    right: 10px;
    background-color: var(--color-accent-alt);
  }
  
  /* ======================================================
     BUTTONS
  ====================================================== */
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    font-weight: 500;
  }
  
  .btn svg,
  .btn img {
    width: 16px;
    height: 16px;
  }
  
  .github-btn {
    background: transparent;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
  }
  
  .details-btn {
    background-color: var(--color-accent-alt);
  }
  
  /* ======================================================
     SKILLS
  ====================================================== */
  
  .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }
  
  .skill-pill {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: default;
    transition: transform 0.2s, background-color 0.2s;
  }
  
  .skill-pill:hover {
    background-color: #0056b3;
    transform: scale(1.05);
  }
  
  /* ======================================================
     FOOTER
  ====================================================== */
  
  footer {
    background-color: #f5f5f5;
    text-align: center;
    padding: 30px 20px;
    color: #777;
    font-size: 0.9em;
  }
  
  /* ======================================================
     RESPONSIVE
  ====================================================== */
  
  @media (max-width: 600px) {
    header h1 {
      font-size: 2rem;
    }
  
    .project-card img {
      height: 200px;
    }
  }
  