* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030305;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* Elegant Dark Matter Background using CSS Gradients */
.dark-matter-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 80%, rgba(30, 10, 50, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(10, 20, 40, 0.3) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Minimalist Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
}

.logo {
    font-family: 'Cinzel', serif; /* Elegant Serif for logo */
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.menu a {
    color: #888;
    text-decoration: none;
    margin-left: 40px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #fff;
}

/* Gallery Layout */
.gallery-wrapper {
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.tiny-header {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #777;
    margin-left: 60px;
    margin-bottom: 20px;
}

/* Horizontal Carousels */
.carousel {
    display: flex;
    gap: 30px;
    padding: 0 60px 40px 60px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

/* Hide the ugly browser scrollbar */
.carousel::-webkit-scrollbar {
    display: none;
}
.carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* The Work Placeholders */
.media-card {
    min-width: 400px; 
    height: 250px;
    background-color: #0a0a0c;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.media-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.15); /* Soft purple/blue glow */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Bottom Image Gallery Grid --- */

.gallery-section {
    margin-top: 40px; /* Space between the carousels and this grid */
    padding-bottom: 100px; /* Gives the site room to breathe at the very bottom */
}

.image-grid {
    display: grid;
    /* This automatically creates responsive columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 60px;
}

.grid-img {
    width: 100%;
    height: 350px; /* Forces all images to be a uniform height */
    object-fit: cover; /* Ensures images crop perfectly without distorting */
    border-radius: 2px;
    opacity: 0.6; /* Dims the gallery slightly so it isn't distracting */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    cursor: zoom-in;
}

/* Hover Effect: The image brightens, steps forward, and glows */
.grid-img:hover {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2; /* Keeps the glowing image above the others */
}