/* Reset and basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

h1 {
    text-align: center;
    margin: 2rem 0;
    font-size: 2.5rem;
    color: #1f2937;
}

/* Page wrapper */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Projects grid */
.projects .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

/* Card styling */
.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

/* Image — fully visible, never cropped */
.card-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* ensures no cropping */
    background-color: #f9fafb; /* nice neutral background behind transparent or narrow images */
}

/* Card title */
.card-copy {
    padding: 1rem 0.5rem 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
}

/* Link button */
.card-link {
    display: block;
    padding: 0.8rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: #4f46e5;
    border-radius: 0 0 15px 15px;
    transition: background 0.3s ease;
}

.card-link:hover {
    background: #6366f1;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
}

footer img {
    transition: transform 0.3s ease;
}

footer img:hover {
    transform: scale(1.2);
}

/* Responsive breakpoints */
@media (max-width: 992px) {
    .projects .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects .cards {
        grid-template-columns: 1fr;
    }
}
