/* 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('../media/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);
    backdrop-filter: blur(5px);
    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;
    flex-wrap: wrap;
    gap: 15px;
}

.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;
    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; }
    .nav-links a { font-size: 11px; }
}

/* --- Desktop Adjustment --- */
@media (min-width: 768px) {
    .nav-links {
        justify-content: flex-end;
        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-section {
    padding: 80px 4%;
    background-color: #111;
}

.gallery-container {
    padding: 100px 4%;
    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;
    outline: 1px solid rgba(255, 255, 255, 0.8);
    outline-offset: -1px;
}

.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;
}

@media (max-width: 768px) {
    .gallery-item { height: 150px; }
}

#portfolio {
    min-height: 500px;
    border: 5px solid red !important;
    background: #222 !important;
}

/* ============================================================
   FOLIO PAGE
   ============================================================ */
.page-top-padding { padding-top: 86px; }

.folio {
    padding: 90px 4% 100px;
    background-color: #111;
    min-height: 70vh;
}

.folio-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #fff;
}

.section-subtitle { color: #ccc; }

/* Resume */
.resume-block {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 60px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 32px;
}

.resume-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.resume-block p {
    color: #ccc;
    margin-bottom: 22px;
}

.resume-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.resume-actions .btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 0;
}

.btn-alt {
    background: transparent;
    border: 2px solid #ff9e00;
}

.btn-alt:hover { background: #ff9e00; }

/* Category cards */
.folio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.folio-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform .3s, box-shadow .3s;
    background-position: center;
    background-size: cover;
}

.folio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));
}

.folio-card span {
    position: relative;
    z-index: 1;
}

.folio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.55);
}

.folio-card.gd     { background-image: url(../media/graphic-design/FinalScreen.jpg); }
.folio-card.render { background-image: linear-gradient(135deg, #3a3a3a, #111); }
.folio-card.video  { background-image: linear-gradient(135deg, #2a2a2a, #111); }
.folio-card.gallery{ background-image: url(../media/image-gallery/Composite_23596.jpg); }

@media (max-width: 600px) {
    .folio-cards { grid-template-columns: 1fr; }
}

.page-top-padding { padding-top: 86px; }

/* Video reels grid */
.video-item {
    height: 220px;
    background: #000;
}
.video-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}