/* assets/css/style.css */

/* 1. GLOBAL RESET */
* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font-family: "Source Sans Pro", sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    height: 100%;
}

/* 2. BACKGROUND IMAGE */
/* Put an image named 'bg.jpg' in your images folder, or this will just be black */
body::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../../images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.4; /* Darkens the image so text is readable */
    z-index: -1;
}

/* 3. THE MAIN GLASS BOX */
.main-wrapper {
    width: 90%;
    max-width: 900px;
    margin: 4rem auto; /* Centers it vertically/horizontally */
    padding: 3rem;
    background: rgba(20, 20, 20, 0.85); /* See-through dark grey */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    backdrop-filter: blur(10px); /* Blurs the background behind the box */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 4. TEXT STYLES */
h1, h2, h3 { 
    color: #fff; 
    text-transform: uppercase; 
    letter-spacing: 0.2rem; 
    margin-bottom: 1.5rem; 
    text-align: center;
}
h1 { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1rem; }
p { color: #ccc; margin-bottom: 1.5rem; text-align: center; }
a { color: #fff; text-decoration: none; transition: 0.3s; }
a:hover { color: #4db8ff; }

/* 5. BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.btn-container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* 6. PHOTO GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 2rem 0;
}
.grid img {
    width: 100%; height: 200px; object-fit: cover;
    border-radius: 4px; cursor: pointer;
    transition: transform 0.2s;
}
.grid img:hover { transform: scale(1.03); opacity: 0.9; }

/* 7. LINKS LIST (For Galleries) */
.link-list { list-style: none; padding: 0; }
.link-list li { margin-bottom: 1rem; }
.link-box {
    display: block; padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}
.link-box:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.client-name { font-size: 1.2rem; font-weight: bold; display: block; }
.shoot-details { font-size: 0.9rem; opacity: 0.7; }

/* 8. LIGHTBOX */
#lightbox {
    display: none; position: fixed; z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    justify-content: center; align-items: center;
}
#lightbox img { max-width: 90%; max-height: 85%; border-radius: 4px; }
.lb-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 3rem; cursor: pointer; padding: 20px;
    user-select: none;
}
#lb-prev { left: 0; }
#lb-next { right: 0; }
#lb-close { top: 20px; right: 30px; transform: none; }

/* 9. UTILITIES */
.hidden { display: none; }
.error { color: #ff6b6b; text-align: center; margin-top: 10px; }
.input-field {
    width: 100%; padding: 10px; margin-bottom: 10px;
    background: rgba(0,0,0,0.3); border: 1px solid #555; color: #fff;
}