* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Hero Section */
.hero {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../imgs/spacecat-wallpaper-2560x1080.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeIn 1s ease-in;
}

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

/* Grid Section */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.grid-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #e0e0e0;
    aspect-ratio: 1;
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-item img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.grid-item img.loaded {
    opacity: 1;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 32px;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}
