body{
  padding: 25px;
}
.title {
	color: #5C6AC4;
}
/* --- Global Styles & Variables (no changes) --- */
:root {
    --bg-color: #1a202c;
    --card-color: #2d3748;
    --text-color: #e2e8f0;
    --heading-color: #ffffff;
    --accent-color: #4fd1c5;
    --border-color: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* ... (All previous styles from body to footer remain the same) ... */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
.container { max-width: 900px; margin: 0 auto; padding: 2rem; }
header { text-align: center; margin-bottom: 3rem; }
.project-title h1 { font-size: 2.8rem; color: var(--heading-color); font-weight: 700; }
.project-date { display: inline-block; background-color: var(--accent-color); color: var(--bg-color); padding: 0.2rem 0.8rem; border-radius: 15px; font-size: 0.9rem; font-weight: 600; margin-top: 0.5rem; }
.project-subtitle { font-size: 1.1rem; max-width: 600px; margin: 1rem auto 0; color: #a0aec0; }
.card { background-color: var(--card-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 4px 15px var(--shadow-color); transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(20px); }
.card.visible { opacity: 1; transform: translateY(0); }
.card h2 { color: var(--heading-color); font-size: 1.8rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent-color); display: inline-block; }
.card h2 .fas, .card h2 .fab { margin-right: 0.8rem; color: var(--accent-color); }
#features ul { list-style: none; padding-left: 0; }
#features li { display: flex; align-items: flex-start; margin-bottom: 1rem; font-size: 1.05rem; }
#features li .fas { color: var(--accent-color); margin-right: 1rem; margin-top: 5px; font-size: 1.2rem; }
.tech-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.icon-item { display: flex; flex-direction: column; align-items: center; font-size: 1rem; font-weight: 600; transition: transform 0.2s ease; }
.icon-item:hover { transform: scale(1.1); }
.icon-item i { font-size: 3rem; margin-bottom: 0.5rem; color: var(--accent-color); }
footer { text-align: center; padding: 2rem; margin-top: 2rem; color: #a0aec0; border-top: 1px solid var(--border-color); }

/* --- UPDATED & NEW STYLES START HERE --- */

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item .gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer; /* Indicates the image is clickable */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item .gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.gallery-item .caption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* --- Image Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    display: flex; /* Use flexbox for easy centering */
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85vh;
    border-radius: 5px;
    animation: zoomIn 0.3s ease-out; /* Add animation */
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.modal .caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 400;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .project-title h1 { font-size: 2.2rem; }
    .card { padding: 1.5rem; }
    .card h2 { font-size: 1.5rem; }
    .modal-content { max-width: 95%; }
}