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

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #e1e1e1;
    --hover-color: #666666;
    --spacing-unit: 20px;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
}

/* Header/Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
}

.logo-icon,
.logo-title {
    font-weight: bold;
}

.logo-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #000000;
    border-radius: 50%;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    gap: 0;
    background-color: var(--bg-color);
    position: relative;
    z-index: 999;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav.active {
    display: flex;
}

/* CV Download Section */
.cv-download-section {
    padding: 20px 0;
}

.cv-download-link {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    background-image: url(assets/underline.svg);
    background-size: 100% 4px;
    background-position: bottom;
    background-repeat: no-repeat;
    padding-bottom: 0.05rem;
}

.cv-download-link:hover {
    color: #0011C8;
}

/* About Section */
.about-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.about-column {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.about-column p {
    margin-bottom: 20px;
}

.about-column p:last-child {
    margin-bottom: 0;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #e1e1e1;
}

/* Tooltip for CV Download Links */
.cv-download-link {
    position: relative;
    cursor: pointer;
}

.email-copy-link {
    cursor: pointer;
}

.copy-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 15px;
    background-color: #000000;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cv-download-link:hover .copy-tooltip {
    opacity: 1;
}

.copy-tooltip.copied {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 10px 0 50px;
    position: relative;
}

.hero-background-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border: none;
    pointer-events: auto;
}

.hero .container {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero .container .artifacts-table,
.hero .container .artifacts-table *,
.hero .container .artifacts-table-content,
.hero .container .artifacts-table-content * {
    pointer-events: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    pointer-events: none;
    align-items: start;
}

.hero-column {
    background-color: #ffffff2f;
    min-height: 200px;
    /* border: 1px dashed rgba(245, 230, 230, 0.6); */
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: none;
    height: auto;
}

.hero-column * {
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
.hero-column a,
.hero-column button,
.hero-column .hero-link,
.hero-column .artifact-link,
.hero-column .tag-filter,
.hero-column .artifacts-list a,
.hero-column .highlight {
    pointer-events: auto;
}

/* Re-enable pointer events for SVG elements inside interactive elements */
.hero-column a svg,
.hero-column a *,
.hero-column .tag-filter svg,
.hero-column .tag-filter * {
    pointer-events: auto;
}

.hero-column-01 {
    /* Styles specific to column 01 */
}

.hero-column-02 {
    /* Styles specific to column 02 */
}

.hero-column-03 {
    /* Styles specific to column 03 */
    background-color: transparent;
}

/* Contact page specific layout */
.contact-page .hero-grid {
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.contact-page .hero-column-01 {
    grid-column: 1;
    align-items: flex-start;
}

.contact-page .hero-column-01 .hero-frame-top {
    margin-top: auto;
}

.contact-page .hero-column-01 .hero-frame-top .hero-title {
    margin-bottom: 40px;
}

.contact-page .hero-column-02 {
    display: none;
}

.contact-page .hero-column-03 {
    grid-column: 2;
}

/* Frame styles within specific columns */
.hero-column-01 .hero-frame {
    /* Styles for frames in column 01 */
}

.hero-column-02 .hero-frame {
    /* Styles for frames in column 02 */
}

.hero-column-03 .hero-frame {
    /* Styles for frames in column 03 */
}

.hero-column-03 .hero-frame-top {
    justify-content: flex-start;
}

.hero-frame {
    /* border: 1px dashed rgba(245, 230, 230, 0.6); */
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    height: fit-content;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
}
.hero-frame-header {
    font-size: 12px;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #666;
}

.hero-frame-header p {
    margin: 0;
    padding: 0;
}

.hero-frame-header a {
    color: #0011C8;
}

.hero-frame-header a:hover {
    color: #0011C8;
    opacity: 0.8;
}

.hero-frame-top {
    /* border: 1px dashed rgba(245, 230, 230, 0.6); */
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    min-height: 150px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: auto;
    color: rgba(0, 17, 200, 1);
}

.hero-link {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    margin-bottom: 0px;
    transition: color 0.2s ease;
    background-image: url(assets/underline.svg);
    background-size: 100% 4px;
    background-position: bottom;
    background-repeat: no-repeat;
    padding-bottom: 0.05rem;
}

.hero-link:hover {
    color: #666;
}

.medium-link {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.2s ease;
    background-image: url(assets/underline.svg);
    background-size: 100% 4px;
    background-position: bottom;
    background-repeat: no-repeat;
    padding-bottom: 0.05rem;
}

.medium-link:hover {
    color: #0011C8;
}

.artifact-link {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    margin-bottom: 0px;
    transition: color 0.2s ease;
    background-image: url(assets/underline.svg);
    background-size: 100% 4px;
    background-position: bottom;
    background-repeat: no-repeat;
    padding-bottom: 0.05rem;
}

.artifact-link:hover {
    color: #0011C8;
}

/* Artifacts list styling */
.artifacts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}

/* Specific styling for hero-links in artifacts list */
.hero-column-01 .hero-link:hover,
.artifacts-list .hero-link:hover {
    color: #0011C8;
}

/* Tag filter styling */
.artifacts-list .hero-link.tag-filter {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.artifacts-list .hero-link.tag-filter .tag-filter-dot {
    flex-shrink: 0;
    display: none;
}

.artifacts-list .hero-link.tag-filter .tag-filter-dot.visible {
    display: block;
}

.artifacts-list .hero-link.tag-filter.active {
    color: #0011C8;
    font-weight: 500;
    background-image: url(assets/tag-selected-background.svg);
    background-repeat: repeat-x;
    background-size: 100% 6px;
    background-position: bottom;
    padding: 2px 4px;
}

/* Artifacts Table */
.artifacts-table {
    margin-top: 60px;
    width: 100%;
}

.artifacts-table-content {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.artifacts-table-content thead {
    border-bottom: 1px solid var(--border-color);
}

.artifacts-table-content th {
    padding: 15px 0;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
}

.artifacts-table-content td {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    vertical-align: top;
}

.artifacts-table-content tbody tr:last-child td {
    border-bottom: none;
}

.artifacts-table-content tbody tr {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.artifacts-table-content tbody tr:hover {
    background-color: #f8f8f8;
}

.artifacts-table-content tbody tr:hover .artifact-link {
    color: #0011C8;
}

.artifacts-table-content td:first-child {
    width: 40%;
}

.artifacts-table-content td:nth-child(2) {
    color: #666;
    font-size: 14px;
}

.artifacts-table-content .arrow-cell {
    width: 50px;
    text-align: right;
    color: #0011C8;
    font-size: 18px;
    padding-right: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.artifacts-table-content tbody tr:hover .arrow-cell {
    opacity: 1;
}

.artifacts-table-footer {
    margin-top: 40px;
    font-size: 14px;
    color: #666;
    text-align: left;
}

.highlight {
    transition: color 0.2s ease;
}

.highlight:hover {
    color: #0011C8;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    line-height: 1.2;
    color: #000000;
}

/* Typewriter animation */
.typewriter {
    display: inline;
    position: relative;
    color: #666666;
}

.typewriter::after {
    content: '|';
    margin-left: 2px;
    animation: blink 0.7s infinite;
    color: #0011C8;
}

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

.hero-section-title {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    height: fit-content;
}

/* Project Grid */
.project-grid {
    padding: 0px 0 100px;
}

.project-grid .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    row-gap: 40px;
}

.project-item {
    position: relative;
    display: block;
}

.project-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-item:hover .project-cover {
    transform: scale(1.02);
    opacity: 0.9;
}

.placeholder-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #e1e1e1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.project-item:hover .placeholder-square {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Different colors for each placeholder (used as fallback) */
.project-item:nth-child(1) .placeholder-square { background-color: #d4d4d4; }
.project-item:nth-child(2) .placeholder-square { background-color: #c7c7c7; }
.project-item:nth-child(3) .placeholder-square { background-color: #bababa; }
.project-item:nth-child(4) .placeholder-square { background-color: #adadad; }
.project-item:nth-child(5) .placeholder-square { background-color: #a0a0a0; }
.project-item:nth-child(6) .placeholder-square { background-color: #939393; }
.project-item:nth-child(7) .placeholder-square { background-color: #868686; }
.project-item:nth-child(8) .placeholder-square { background-color: #797979; }
.project-item:nth-child(9) .placeholder-square { background-color: #6c6c6c; }
.project-item:nth-child(10) .placeholder-square { background-color: #5f5f5f; }
.project-item:nth-child(11) .placeholder-square { background-color: #525252; }
.project-item:nth-child(12) .placeholder-square { background-color: #454545; }

.project-caption {
    margin-top: 15px;
    text-align: left;
}

.project-caption h3 {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: block;
}

.project-caption p {
    font-size: 13px;
    color: var(--text-color);
    margin-top: 8px;
    line-height: 1.5;
    display: block;
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-content {
    max-width: 600px;
}

.contact-links {
    margin-top: 40px;
}

.contact-links p {
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.3px;
}

/* Footer/Contact */
.footer {
    padding: 80px 0 60px;
    border-top: 1px solid var(--border-color);
}

.footer-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
}

.footer-links {
    margin-bottom: 60px;
}

.footer-links p {
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.3px;
}

.footer-credits {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 40px;
    }

    .project-grid .container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.active {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 20px 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 20px;
    }

    .artifacts-table {
        margin-top: 20px;
    }

    .hero-column-01,
    .hero-column-03 {
        display: none;
    }

    /* Show only first column on mobile for contact and artifacts pages */
    .contact-page .hero-column-01,
    .artifacts-page .hero-column-01 {
        display: flex;
        min-height: auto;
        height: fit-content;
    }

    .artifacts-page .hero-column-01 .hero-frame-top {
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
    }

    .project-grid .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        row-gap: 30px;
    }

    .footer {
        padding: 60px 0 40px;
    }

    /* Hide Tags column on mobile */
    .artifacts-table-content th:nth-child(2),
    .artifacts-table-content td:nth-child(2) {
        display: none;
    }

    /* About section responsive */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-section {
        padding: 30px 0;
    }

    .about-column-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .logo-dot {
        width: 10px;
        height: 10px;
    }

    .header {
        padding: 15px 0;
    }

    .project-grid .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

blockquote {
    border-left: 4px solid #3b82f6; /* blue line */
    padding-left: 1rem;
    margin-left: 0;
    color: #374151;
  }