:root {
    --white: #ffffff;
    --mint: #adffbf;
    --purple: #850aff;
    --pink: #f8dde4;
    --dark: #232528;
}

/* ---- Projects Page Layout ---- */
.projects-page-content {
    /* Adds space to clear your fixed navbar */
    padding-top: 100px; 
}

.projects-page-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem; /* Optional: adjust size as needed */
    color: var(--purple);
}
/* The grid container for all your project cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 5%;
}

/* The main container - this sets up the 3D space */
.project-card {
    background-color: transparent;
    height: 450px;
    perspective: 1000px; /* Essential for the 3D effect */
}

/* This inner container is what actually flips */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* The hover effect that triggers the flip */
.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Common styles for both front and back panels */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Hides the back of the panel */
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Front Panel Styling (Revised) --- */

.card-front {
    color: var(--white);
    /* We'll position the text content absolutely from here */
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* REMOVED: opacity and z-index properties */
}

.card-front .front-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    
    /* This gradient creates the dark area for text without needing z-index */
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    
    /* REMOVED: z-index property */
}

.card-front h2 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

/* --- Back Panel Styling --- */
.card-back {
    background-color: var(--pink);
    color: var(--dark);
    transform: rotateY(180deg); /* Flips the back panel initially */
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-back .back-content {
    text-align: center;
}

.card-back h3 {
    color: var(--purple);
    margin-top: 0;
}

.card-back ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-back li {
    background: var(--mint);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-back h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-back p {
    font-size: 0.9rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.card-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
    /* Base styling to match your skill tags */
    background: var(--mint);
    color: var(--dark);
    border: none;
    border-radius: 20px; /* This creates the pill shape */
    padding: 8px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* A subtle hover effect */
.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Style for the currently selected filter */
.filter-btn.active {
    background: var(--pink);
    color: var(--white);
    box-shadow: none;
}

footer {
    color: var(--white);
}

