/* Base Reset & Font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container Styling */
.container {
    background-color: #e0f9fdf2;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

/* Heading */
h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* Card Style */
.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    color: #0077ff;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 119, 255, 0.1);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px) scale(1.03);
    background: #fce4f3;
    color: #d1008f;
    box-shadow: 0 8px 20px rgba(255, 0, 150, 0.2);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .card {
        font-size: 16px;
        padding: 18px;
    }

    .container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }
}