/* =============================================
   Grayson Lamet Portfolio - Master Stylesheet
   ============================================= */

/* --- CSS Variables (Theme Colors) --- */
:root {
    --bg-dark: #1a1a1a;
    --bg-darker: #111111;
    --bg-card: #222222;
    --text-light: #f0f0f0;
    --text-muted: #aaaaaa;
    --accent: #c8c8c8;
    --accent-hover: #ffffff;
    --nav-bg: rgba(10, 10, 10, 0.92);
    --border-subtle: #333333;
    --nav-height: 60px;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Navigation Bar --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
}

#nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-light);
    text-transform: uppercase;
}

#nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

#nav-links li {
    display: inline;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}

.nav-link:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.nav-link.active {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* --- Header Section --- */
#header {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('images/MasterPortrait.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

#header-content {
    position: relative;
    z-index: 1;
    padding-left: 80px;
    padding-bottom: 60px;
    text-align: center;
}

#header-name {
    font-size: 5rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

#header-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- Page Title --- */
#page-title {
    background: var(--bg-darker);
    padding: 100px 40px 40px 40px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

#page-title h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

/* --- Page Container --- */
#page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    clear: both;
}

/* --- Content Area --- */
#content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    margin-bottom: 40px;
}

/* --- Headings --- */
h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin: 0 0 15px 0;
    padding: 0;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent);
    margin: 0 0 10px 0;
    padding: 0;
}

/* --- Paragraphs --- */
p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 15px 0;
    line-height: 1.8;
}

/* --- Links --- */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s;
}

a:hover {
    color: var(--accent-hover);
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Footer --- */
#footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
    padding: 25px 40px;
    text-align: center;
    clear: both;
}

#footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Utility: Floats & Clearfix --- */
.float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Project Groups --- */
.project-group {
    margin-bottom: 80px;
}

/* --- Description Box --- */
.desc-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 20px 25px;
    margin-top: 4px;
}

.desc-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- Group 1: Capybara + Spider --- */
.group-1-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.group-1-left {
    flex: 1;
}

.group-1-left img {
    width: 100%;
    height: auto;
}

.group-1-right {
    flex: 1;
}

.group-1-right img {
    width: 100%;
    height: auto;
}

/* --- Group 2: Type Poster --- */
.group-2-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.group-2-layout img {
    width: 50%;
    height: auto;
}

.group-2-layout .desc-box {
    width: 50%;
}

/* --- Group 3: Business Cards --- */
.group-3-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.group-3-layout img {
    width: 60%;
    height: auto;
    margin-bottom: 10px;
}

.group-3-layout .desc-box {
    width: 60%;
}

/* --- Group 4: Patterns --- */
.group-4-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pattern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 60%;
    margin-bottom: 15px;
}

.pattern-grid img {
    width: 100%;
    height: auto;
}

.pattern-center {
    width: 30%;
    margin-bottom: 15px;
}

.pattern-center img {
    width: 100%;
    height: auto;
}

.group-4-layout .desc-box {
    width: 60%;
}

/* --- Advanced Graphic Design: Side by Side --- */
.adv-side-by-side {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.adv-image-half {
    flex: 1;
}

.adv-image-half img {
    width: 100%;
    height: auto;
}

/* --- Video Group --- */
.video-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 80px;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}

.video-wrapper {
    width: 80%;
    margin-bottom: 15px;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-group .desc-box {
    width: 80%;
}

/* --- Photo Grid --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.photo-item {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.03);
}

/* --- Dashboard Images --- */
.dash-title {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 15px;
}

.dash-image {
    width: 100%;
}

.dash-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-subtle);
}

/* --- Contact Page --- */
#contact-intro {
    margin-bottom: 30px;
}

#contact-intro p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

#contact-form-wrapper {
    width: 100%;
}

#contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.required {
    color: #cc4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-hover);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

#submit-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 14px 50px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

#submit-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* --- Media Queries (Responsive) --- */
@media (max-width: 1024px) {
    #header-name {
        font-size: 3.5rem;
    }
    #header-content {
        padding-left: 50px;
    }
}

@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 10px;
    }
    #nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .nav-link {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    #header-name {
        font-size: 2.5rem;
    }
    #header-content {
        padding-left: 30px;
    }
    #page-container {
        padding: 40px 20px;
    }
    #content {
        padding: 25px;
    }
    .group-1-layout {
        flex-direction: column;
    }
    .adv-side-by-side {
        flex-direction: column;
    }
    .group-2-layout img,
    .group-2-layout .desc-box,
    .group-3-layout img,
    .group-3-layout .desc-box,
    .pattern-grid,
    .group-4-layout .desc-box {
        width: 100%;
    }
    .pattern-center {
        width: 50%;
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #header-name {
        font-size: 1.8rem;
    }
    #header-subtitle {
        font-size: 1rem;
    }
    .pattern-center {
        width: 70%;
    }
    .photo-grid {
        grid-template-columns: 1fr;
    }
}