.terminal-cursor::after {
    content: '|';
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.card {
    display: flex;
    flex-direction: column;
    background-color: #2d3748;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
}
.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.card-content {
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.btn-read-more {
    background-color: green;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-align: center;
    display: inline-block;
    margin-top: 0.5rem;
    align-self: flex-start;
}
.btn-read-more:hover {
    background-color: darkgreen;
}

.btn-verify {
    background-color: purple;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-align: center;
    display: inline-block;
    margin-top: 0.5rem;
}
.btn-verify:hover {
    background-color: darkmagenta;
}

.section-box {
    background-color: #2d3748;
    padding: 2rem;
    border-radius: 0.2rem;
    margin-bottom: 1rem;
}

/* Updated Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.project-item {
    position: relative;
    overflow: hidden;
    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.project-item:hover img {
    transform: scale(1.05);
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s ease;
}
.project-item:hover .project-overlay {
    opacity: 1;
}
.project-overlay button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.project-overlay button:hover {
    color: #4299e1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: #1a202c;
}

.modal-image-container {
    text-align: center;
    margin: 1.5rem 0;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 0.5rem;
}

.modal-content h4 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a202c;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-visit {
    background-color: #4299e1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-align: center;
    display: block;
    margin: 1rem auto;
    width: fit-content;
}

.btn-visit:hover {
    background-color: #2b6cb0;
}

.features-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.features-list li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.image-gallery img {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
}

/* Zoom Modal Styles */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.zoom-modal img {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
}

/* Media Queries for larger screens */
@media (min-width: 768px) {
    .card {
        flex-direction: row;
    }
    .card img {
        width: 50%;
        height: auto;
    }
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    .modal {
        padding: 2rem;
    }
    .modal-content {
        padding: 3rem;
        width: 90%;
    }
    .modal-image-container {
        margin: 2rem 0;
    }
    .modal-image-container img {
        max-height: 400px;
    }
    .modal-content h4 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .modal-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .btn-visit {
        padding: 0.75rem 1.5rem;
        margin: 1.5rem auto;
    }
    .features-list {
        padding-left: 2rem;
        margin-bottom: 2rem;
    }
    .features-list li {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
    }
    .close-btn {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}