/* CSS Document */

/* Custom Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

/* Background Image Strategy */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('../img/intro-bg2.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- Navigation Styling --- */
.masthead {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.63); /* Dark semi-transparent background */
    backdrop-filter: blur(5px); /* Modern blur effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centers links on mobile */
    flex-wrap: wrap;       /* Allows links to wrap to a second line if needed */
    gap: 15px;             /* Space between links */
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;   /* Prevents "Graphics Portfolio" from breaking into two lines */
/*    letter-spacing: 1px;*/
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #cccccc;
}

/* --- Mobile Fixes (Phones) --- */
@media (max-width: 600px) {
    .nav-links {
        gap: 10px; /* Tighter gap for small screens */
    }
    
    .nav-links a {
        font-size: 11px; /* Slightly smaller text so they fit in one row */
    }
}

/* --- Desktop Adjustment --- */
@media (min-width: 768px) {
    .nav-links {
        justify-content: flex-end; /* Pushes links to the right on desktop */
        gap: 30px;
    }
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #2a2a2a;
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 2rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    background: #ff9e00;
    color: #fff;
    padding: 12px 30px;
    margin-top: 12px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover { background: #e68a00; }

/* Form Elements */
input, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #333;
    border: 1px solid #444;
    color: #fff;
}
/* --- PURE FLUID GALLERY --- */

/* Gallery Styling */
.gallery-section { 
    padding: 80px 4%; 
    background-color: #111; /* <--- ADD OR CHANGE THIS LINE */
}

.gallery-container {
    padding: 100px 4%; /* Space from edges */
    background: #111;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* This adds the thin white line directly to the photo */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
    /* THE FIX: Use 'outline' instead of border */
    /* It sits 'on top' of the image so it won't be hidden */
    outline: 1px solid rgba(255, 255, 255, 0.8);
    outline-offset: -1px; /* This pulls the line 1px inside the image edge */
}

/* Optional: Add a little space between the images to make the lines pop */
.gallery-item {
    margin: 5px; 
    flex-grow: 1;
    height: 300px;
    overflow: hidden;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    text-align: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85%;
    margin-top: 5%;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 3px solid #333;
}

.close-lightbox {
    position: absolute;
    top: 20px; right: 40px;
    color: #fff; font-size: 50px;
    cursor: pointer;
}

/* Mobile: Shrink height so images fit better */
@media (max-width: 768px) {
    .gallery-item { height: 150px; }
}
#portfolio {
    min-height: 500px; 
    border: 5px solid red !important;
    background: #222 !important;
}