/* General Styles */
body {
    background-color: #0f0f12;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: #1a1a1f;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: #9d4edd;
}

.nav-links a {
    color: #bbb;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #9d4edd;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.status-box {
    margin-top: 30px;
    padding: 15px;
    background: #1e1e24;
    border-left: 4px solid #9d4edd;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    display: inline-block;
}

/* 404 Page Styles */
.error-container {
    text-align: center;
    margin-top: 15vh;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #9d4edd;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
}

footer a {
    color: #9d4edd;
    text-decoration: none;
}

/* Credits Specific Styles */
.credits-container {
    max-width: 800px;
    width: 100%;
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.credit-card {
    background: #1a1a1f;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.credit-card:hover {
    transform: translateY(-5px);
    border-color: #9d4edd;
}

.credit-card h3 {
    margin: 0 0 5px 0;
    color: #9d4edd;
}

.role {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Gallery Hub Styles */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.folder-card {
    background: #1a1a1f;
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    text-align: center;
    border: 1px solid #333;
    transition: 0.3s;
}

.folder-card:hover {
    border-color: #9d4edd;
    background: #24242b;
    transform: scale(1.05);
}

.folder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Photo Grid Styles */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.photo-grid img:hover {
    border-color: #9d4edd;
    cursor: pointer;
}

/* Gallery Page Layout */
.photo-viewer {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.photo-viewer h1 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #9d4edd;
    text-transform: capitalize; /* Automatically fixes casing */
}

/* The Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px; /* Gives a uniform height */
    gap: 20px;
    margin-top: 30px;
}

/* Individual Image Styling */
.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    border-radius: 12px;
    background-color: #1a1a1f; /* Placeholder color while loading */
    transition: all 0.4s ease-in-out;
    filter: grayscale(30%); /* Subtle aesthetic effect */
}

/* Hover Effects */
.photo-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.3);
    cursor: zoom-in;
    border: 1px solid #9d4edd;
}

/* Back Button Styling */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.back-link:hover {
    color: #9d4edd;
}