
/* ======= Projects Section ======= */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #222;
}

.project-content p {
    margin: 0;
    color: #555;
}

/* ======= Section Divider ======= */
.section-divider {
    height: 50px;
    background-color: transparent;
}


/* ======= Lightbox ======= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======= Lightbox Controls ======= */
.lightbox-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 25px;
}

.lightbox button {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox button:hover {
    color: #f5b400;
}

/* ======= Lightbox Caption ======= */
.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    text-align: center;
    max-width: 80%;
}

.lightbox-caption h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.lightbox-caption p {
    font-size: 1rem;
    color: #ddd;
}
