/* Background :) ✨*/
.bg {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background: 
    linear-gradient(
        to bottom,
        rgba(199, 193, 193, 0) 0%, 
        rgba(13, 13, 13, 0.2) 30%,
        rgba(54, 52, 52, 0.4) 80%, 
        rgba(13, 13, 13, 1) 100% 
    ),
    url('imgs/gray.gif') left / cover no-repeat;

  pointer-events: none;
  z-index: 0;
}

.bg > * {
  position: relative;
  z-index: 1;
}

/* Projects Section */
.projects-section {
    max-width: 1200px;
    margin: -80px auto 100px;
    padding: 0 3vw;
    display: flex;
    flex-direction: column;
    gap: 60px;
    z-index: 1;
}

/* Projects container grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* always 2 per row */
    gap: 40px;
}

/* Individual Project Card */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Project Image */
.project-image {
    width: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.project-image img:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Project Content */
.project-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.project-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 0;
    color: #fff;
}

.project-content p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Links */
.project-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.project-links a:hover {
    background: rgba(255, 230, 150, 0.9);
    color: #000;
    transform: scale(1.05);
}

/* Award bubbles container */
.project-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Base bubble */
.award {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #ddd;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Variants */
.award.gold {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.award.silver {
    background: rgba(200, 200, 200, 0.15);
    color: #cfcfcf;
}

.award.bronze {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
}

/* Hover effect (subtle glow like your timeline stars) */
.award:hover {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/*Media Queries for Responsiveness 🌟*/
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr; /* stack on smaller screens */
    }
}

@media (max-width: 480px) {
    .project-image img {
        height: 150px;
    }
}
