/* ============================================
   Mark Morgan - Personal Website
   Fresh dark theme with modern layout
   ============================================ */

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

:root {
    --bg-primary: #1c1c1c;
    --bg-secondary: #161616;
    --bg-card: #252525;
    --bg-hover: #2e2e2e;
    --text-primary: #e0e0e0;
    --text-secondary: #a8a8a8;
    --text-muted: #707070;
    --accent: #e8a04c;
    --accent-dim: #c47e2a;
    --border: #333333;
    --header-bg: rgba(22, 22, 22, 0.95);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #f0b866;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: opacity var(--transition);
}

.site-logo:hover {
    color: #fff;
    opacity: 0.85;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav a {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(232, 160, 76, 0.1);
}

.main-nav a.active {
    color: var(--accent);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* --- Hero Section (Home) --- */
.hero {
    padding-top: 120px;
    padding-bottom: 40px;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 56px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 20px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-image {
    flex: 0 0 280px;
}

.hero-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
}

/* --- About Section --- */
.about-section {
    padding: 30px 0 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.about-block {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color var(--transition), transform var(--transition);
}

.about-block:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.about-block h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.about-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-block p + p {
    margin-top: 12px;
}

.about-block .about-labels {
    color: #fff;
    font-weight: 500;
}

/* --- Video Section (Home) --- */
.video-section {
    padding: 20px 0 100px;
}

.video-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.video-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.video-embed {
    position: relative;
    padding-bottom: 42.19%; /* 56.25% * 0.75 for 75% width */
    width: 75%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0 auto;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Gallery / Images Page --- */
.gallery-section {
    padding-top: 112px;
    padding-bottom: 80px;
}

.gallery-section h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.gallery-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 17px;
}

.mosaic-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.gallery-item {
    flex-grow: 1;
    height: 240px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Force last row items to not stretch too wide */
.mosaic-gallery::after {
    content: '';
    flex-grow: 999;
}

/* --- Thoughts Page --- */
.thoughts-section {
    padding-top: 112px;
    padding-bottom: 80px;
}

.thoughts-section h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
}

.thoughts-group {
    margin-bottom: 60px;
}

.thoughts-group h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.thoughts-list blockquote {
    position: relative;
    padding: 6px 0 6px 16px;
    margin-bottom: 0;
    background: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: border-color var(--transition), color var(--transition);
}

.thoughts-list blockquote:hover {
    border-left-color: var(--accent);
    color: var(--text-primary);
}

.thoughts-list blockquote cite {
    font-size: 13px;
    color: var(--text-muted);
    font-style: normal;
    margin-left: 8px;
}

.thought-note {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Contact Page --- */
.contact-section {
    padding-top: 112px;
    padding-bottom: 80px;
}

.contact-section h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.contact-note {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.contact-form {
    max-width: 560px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group .required {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 160, 76, 0.15);
}

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

.btn-submit {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 40px;
    background: var(--accent-dim);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.form-message {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 15px;
}

.form-message.success {
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #68d391;
}

.form-message.error {
    background: rgba(245, 101, 101, 0.15);
    border: 1px solid rgba(245, 101, 101, 0.3);
    color: #fc8181;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.site-footer p {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-image {
        flex: none;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .video-embed {
        width: 100%;
        padding-bottom: 56.25%;
    }

    .gallery-item {
        height: 180px;
    }

    .thoughts-section h1,
    .contact-section h1,
    .gallery-section h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 17px;
    }

    .gallery-item {
        height: 140px;
    }

    .about-block {
        padding: 24px;
    }
}
