/* Industrial Monospace Portfolio - Carson Lansdowne */

:root {
    --burnt-orange: #e8a87c;
    --burnt-orange-dark: #d1661a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 14px;
}

/* Container with border - almost full width */
.container {
    max-width: 95%;
    margin: 20px auto;
    background-color: #ffffff;
    border: 1px solid #333333;
}

/* Navigation - sticky header */
nav {
    border-bottom: 1px solid #333333;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 100;
}

nav .name {
    font-size: 14px;
    display: flex;
    align-items: center;
}

nav .name a {
    color: #1a1a1a;
    text-decoration: none;
}

nav .name a:hover {
    text-decoration: underline;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: -15px -30px -15px 0;
}

nav ul li a {
    color: #1a1a1a;
    text-decoration: none;
    border-left: 1px solid #333333;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    height: 100%;
}

nav ul li a:hover {
    background-color: var(--burnt-orange);
}

/* Main content area */
main {
    padding: 40px 30px;
    min-height: 500px;
}

/* Traditional link colors for main content only */
main a {
    color: #0000EE;
}

main a:visited {
    color: #551A8B;
}

/* Landing page - centered content */
.landing-hero {
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Corner brackets - top-left and bottom-right only */
.landing-hero::before,
.landing-hero::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid #333333;
}

/* Top-left corner */
.landing-hero::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

/* Bottom-right corner */
.landing-hero::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.landing-hero h1 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 5px;
}

.landing-hero .subtitle {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: normal;
}

.landing-hero .location {
    font-size: 14px;
    font-weight: normal;
}

/* Simple centered links */
.landing-links {
    text-align: center;
    margin-bottom: 80px;
}

.landing-links a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.landing-links a:hover {
    color: var(--burnt-orange-dark);
}

/* Typewriter section */
.typewriter-section {
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
    min-height: 30px;
}

.typewriter-static {
    color: #1a1a1a;
}

.typewriter-text {
    color: var(--burnt-orange-dark);
    font-weight: bold;
}

.typewriter-cursor {
    color: var(--burnt-orange-dark);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Current work header */
.current-work-header {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Current work section - matches project card style */
.current-work {
    border: 1px solid #333333;
    padding: 25px;
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.current-work[data-image]::before {
    background-image: url(attr(data-image));
}

.current-work:hover {
    border-color: var(--burnt-orange-dark);
}

.current-work.expanded {
    cursor: default;
}

.current-work.expanded::before {
    opacity: 0.08;
}

/* Project image overlay for current work */
.current-work::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--bg-image, none);
    opacity: 0.25;
    filter: grayscale(80%) saturate(1.2);
    transition: opacity 0.4s ease, filter 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.current-work:hover::before {
    opacity: 0.30;
    filter: grayscale(0%) saturate(1.5);
}

/* Fallback grey for current work without image */
.current-work:not([style*="--bg-image"])::before {
    background-color: #d3d3d3 !important;
    background-image: none !important;
    filter: none !important;
    opacity: 0.15;
}
.current-work:not([style*="--bg-image"]):hover::before {
    background-color: var(--burnt-orange) !important;
    opacity: 0.15;
}
.current-work:not([style*="--bg-image"]).expanded::before {
    background-color: #d3d3d3 !important;
    opacity: 0.05;
}

/* Keep text above image overlay */
.current-work > * {
    position: relative;
    z-index: 2;
}

.current-work .project-header {
    position: relative;
    z-index: 2;
}

.current-work h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
}

.current-work h3:after {
    content: "";
    display: block;
    width: 150px;
    border-bottom: 1px solid #333333;
    margin-top: 2px;
    margin-bottom: 12px;
}

.current-work .project-header p {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
}

.current-work .project-details {
    position: relative;
    z-index: 2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.current-work .project-details p {
    font-weight: 300;
}

.current-work.expanded .project-details {
    max-height: 2000px;
    margin-top: 15px;
}

.current-work .tags {
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.current-work .tag {
    display: inline-block;
    margin-right: 10px;
}

/* About page */
.about-header-image {
    margin: -40px -30px 30px -30px;
    height: 500px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #333333;
    overflow: hidden;
}

.about-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.about-intro {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.about-profile-photo {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border: 1px solid #333333;
    padding: 3px;
    background-color: #fafafa;
}

.about-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.about-intro-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-intro-text-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-intro-text p {
    margin: 0;
}

.about-section {
    margin-bottom: 40px;
}

.about-photo {
    border: 1px solid #333333;
    padding: 3px;
    max-width: 300px;
    margin: 20px 0;
}

.about-photo img {
    width: 100%;
    display: block;
    filter: grayscale(20%);
}

.about-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.about-section h2 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.about-section h2:after {
    content: "";
    display: block;
    width: 100px;
    border-bottom: 1px solid #333333;
    margin-top: 2px;
    margin-bottom: 15px;
}

.about-section ul {
    list-style: none;
    margin-left: 20px;
}

.about-section ul li {
    margin-bottom: 8px;
}

.about-section ul li:before {
    content: "- ";
    margin-left: -20px;
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #333333;
    color: #1a1a1a;
    transition: all 0.2s;
}

.contact-links a:hover {
    background-color: var(--burnt-orange);
    border-color: var(--burnt-orange-dark);
}

.contact-links a svg {
    width: 20px;
    height: 20px;
}

/* Projects/Blog pages */
.page-title {
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.page-title:after {
    content: "";
    display: block;
    width: 80px;
    border-bottom: 1px solid #333333;
    margin-top: 2px;
    margin-bottom: 25px;
}

#blog-container {
    margin-bottom: 60px;
}

.filter-nav {
    margin-bottom: 30px;
    font-size: 13px;
}

.filter-nav span {
    margin-right: 5px;
}

.filter-nav button {
    background: none;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
    color: #1a1a1a;
}

.filter-nav button:before {
    content: "[";
}

.filter-nav button:after {
    content: "]";
}

.filter-nav button:hover,
.filter-nav button.active {
    text-decoration: underline;
    color: var(--burnt-orange-dark);
}

/* Project/Blog cards */
.project-card {
    border: 1px solid #333333;
    padding: 20px;
    background-color: #fafafa;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card {
    padding: 0;
    margin-bottom: 40px;
    background-color: transparent;
}

.blog-card h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.blog-card h3 a {
    color: #0000EE;
    text-decoration: underline;
}

.blog-card h3 a:visited {
    color: #551A8B;
}

.blog-card h3 a:hover {
    color: var(--burnt-orange-dark);
}

.blog-meta {
    font-size: 12px;
    color: #666666;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 13px;
    margin-bottom: 10px;
}

.project-card:hover {
    border-color: var(--burnt-orange-dark);
}

.project-card.expanded {
    cursor: default;
}

/* Project header section (always visible) */
.project-header {
    position: relative;
    z-index: 2;
}

/* Project link under title */
.project-link {
    font-size: 12px;
    margin-bottom: 12px;
    display: block;
}

.project-link a {
    color: var(--burnt-orange-dark);
    text-decoration: none;
    font-weight: bold;
}

.project-link a:hover {
    text-decoration: underline;
}

/* Expanded content - hidden by default */
.project-details {
    position: relative;
    z-index: 2;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.project-card.expanded .project-details {
    max-height: 2000px;
    margin-top: 15px;
}

.project-details p {
    margin-bottom: 12px;
    font-weight: 300 !important;
}

.project-details img {
    max-width: 100%;
    border: 1px solid #333333;
    margin: 15px 0;
    padding: 3px;
}

/* Image overlay on hover */
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--bg-image, none);
    opacity: 0.25;
    filter: grayscale(80%) saturate(1.2);
    transition: opacity 0.4s ease, filter 0.4s ease, background-color 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 0.30;
    filter: grayscale(0%) saturate(1.5);
}

.project-card.expanded::before {
    opacity: 0.08;
}

/* Fallback grey overlay for cards without --bg-image - must come after expanded */
.project-card:not([style*="--bg-image"])::before {
    background-color: #d3d3d3 !important;
    background-image: none !important;
    filter: none !important;
    opacity: 0.15;
}

.project-card:not([style*="--bg-image"]):hover::before {
    background-color: var(--burnt-orange) !important;
    opacity: 0.15;
}

.project-card:not([style*="--bg-image"]).expanded::before {
    background-color: #d3d3d3 !important;
    opacity: 0.05;
}

/* Keep text above overlays */
.project-card > * {
    position: relative;
    z-index: 2;
}

.project-card h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
}

.project-card h3:after {
    content: "";
    display: block;
    width: 150px;
    border-bottom: 1px solid #333333;
    margin-top: 2px;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-tags {
    font-size: 12px;
}

.project-tags .tag:before {
    content: "[";
}

.project-tags .tag:after {
    content: "]";
}

.project-tags .tag {
    margin-right: 10px;
}

/* Footer */
footer {
    border-top: 1px solid #333333;
    padding: 15px 30px;
    text-align: center;
    font-size: 12px;
}

/* Personal Notes Box */
.personal-notes-box {
    border: 1px solid #333333;
    padding: 3px;  /* This creates the offset between border and content, matching profile photo */
    background-color: #fafafa;
    transition: background-color 0.2s;
    display: inline-block;
    width: auto;
    max-width: 150px;  /* Keeps the button compact */
}

.personal-notes-box:hover {
    background-color: var(--burnt-orange);
}

.personal-notes-box a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 11px;
    display: block;
    padding: 4px 12px;
    background-color: var(--burnt-orange);
    font-weight: normal;
    text-align: center;
    transition: background-color 0.2s;
    white-space: nowrap;  /* Prevents text wrapping */
}

.personal-notes-box a:hover {
    color: #000000;
    background-color: var(--burnt-orange-dark);
}

/* Additional Links */
.additional-links {
    margin: 30px 0;
    font-size: 13px;
    text-align: left;
}

.additional-links a {
    color: #0000EE;
    text-decoration: underline;
    margin-right: 15px;
    transition: color 0.2s;
}

.additional-links a:visited {
    color: #551A8B;
}

.additional-links a:hover {
    color: var(--burnt-orange-dark);
}
/* Work Timeline */
.work-timeline {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.timeline-item:hover {
    padding-left: 10px;
}

.timeline-item:hover .timeline-description {
    max-height: 200px;
    opacity: 1;
}

.timeline-year {
    flex-shrink: 0;
    width: 100px;
    font-size: 12px;
    color: #666666;
    padding-top: 2px;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-content h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
}

.timeline-role {
    font-size: 12px;
    color: #666666;
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 13px;
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Password Modal */
.password-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.password-modal-content {
    background-color: #ffffff;
    border: 1px solid #333333;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 470px;
    position: relative;
}

.password-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #666666;
    cursor: pointer;
    line-height: 1;
}

.password-modal-close:hover {
    color: #1a1a1a;
}

.password-modal-content h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.password-modal-content p {
    font-size: 13px;
    color: #666666;
    margin-bottom: 20px;
}

#password-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#password-input {
    flex-grow: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid #333333;
    background-color: #fafafa;
}

#password-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--burnt-orange-dark);
}

#password-form button {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    padding: 8px 20px;
    border: 1px solid #333333;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

#password-form button:hover {
    background-color: var(--burnt-orange);
    border-color: var(--burnt-orange-dark);
}

.password-error {
    color: #c41e3a;
    font-size: 12px;
    margin-top: 10px;
}

/* Blog Post Pages */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #333333;
    padding-bottom: 30px;
}

.blog-post-meta {
    font-size: 12px;
    margin-bottom: 15px;
}

.blog-category {
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--burnt-orange);
    color: #ffffff;
    text-transform: uppercase;
    margin-right: 10px;
}

.blog-date {
    color: #666666;
}

.blog-post-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-tagline {
    font-size: 16px;
    color: #666666;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-post-author {
    font-size: 13px;
    color: #666666;
}

.blog-post-content {
    line-height: 1.8;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content em {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666666;
    margin: 15px 0;
}

.blog-post-content img {
    max-width: 100%;
    border: 1px solid #333333;
    padding: 3px;
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.blog-image-row {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.blog-image-row .blog-image-container {
    flex: 1;
    margin: 0;
    max-width: 50%;
}

/* Brick animation styles */
.landing-hero {
    position: relative;
    overflow: hidden;
    cursor: default;
}

#brick-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2; /* Above covered text, below visible text */
}

/* Middle layer - text that gets covered */
.hero-text-covered {
    position: relative;
    z-index: 1;
}

/* Top layer - text that stays visible */
.hero-text-visible {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3; /* Above everything */
    pointer-events: none;
}

.hero-text-visible h1,
.hero-text-visible .subtitle,
.hero-text-visible .location {
    width: 100%;
    text-align: center;
}

.visible-word {
    visibility: visible;
}

.invisible-placeholder {
    visibility: hidden;
}

.covered-word {
    display: inline-block;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        margin: 20px;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav ul {
        gap: 15px;
    }
    
    main {
        padding: 30px 20px;
    }
    
    .landing-links-section {
        flex-direction: column;
    }
    
    .landing-link-box {
        max-width: 100%;
    }
}

/* Brick animation styles - added for landing hero */
.brick-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.text-content {
    position: relative;
    z-index: 1;
}

.landing-hero h1,
.landing-hero .subtitle,
.landing-hero .location {
    position: relative;
}

.landing-hero .word {
    display: inline-block;
    margin: 0 2px;
    position: relative;
    padding: 1px 1px; /* Always have padding so layout doesn't shift */
}

.landing-hero .behind {
    z-index: 1;
}

.landing-hero .front {
    z-index: 100;
    /* No styling by default */
}

/* Only apply background highlight when bricks are active */
.landing-hero.bricks-active .front {
    background-color: #fbfbfb;
}

.brick {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    z-index: 50;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: opacity 1s ease-out;
    background-repeat: no-repeat;
}

.brick.fading {
    opacity: 0;
}