@font-face {
    font-family: 'Redaction';
    src: url('./fonts/Redaction/Redaction-Regular.woff2') format('woff2'),
         url('./fonts/Redaction/Redaction-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Redaction 10';
    src: url('./fonts/Redaction/Redaction_10-Regular.woff2') format('woff2'),
         url('./fonts/Redaction/Redaction_10-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Redaction 20';
    src: url('./fonts/Redaction/Redaction_20-Regular.woff2') format('woff2'),
         url('./fonts/Redaction/Redaction_20-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Redaction 35';
    src: url('./fonts/Redaction/Redaction_35-Regular.woff2') format('woff2'),
         url('./fonts/Redaction/Redaction_35-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Redaction 50';
    src: url('./fonts/Redaction/Redaction_50-Regular.woff2') format('woff2'),
         url('./fonts/Redaction/Redaction_50-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Redaction 70';
    src: url('./fonts/Redaction/Redaction_70-Regular.woff2') format('woff2'),
         url('./fonts/Redaction/Redaction_70-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'iA Writer Quattro';
    src: url('./fonts/iA Writer Quattro/iAWriterQuattroS-Regular.woff2') format('woff2'),
         url('./fonts/iA Writer Quattro/iAWriterQuattroS-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'iA Writer Quattro Bold';
    src: url('./fonts/iA Writer Quattro/iAWriterQuattroS-Bold.woff2') format('woff2'),
         url('./fonts/iA Writer Quattro/iAWriterQuattroS-Bold.woff') format('woff');
    font-weight: bold;
    font-style: bold;
}

* {
    box-sizing:border-box;
}

body {
    background-color: #1C1C1C;
    color: #ffffff;
    overflow-x: hidden;
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Redaction', sans-serif;
    margin-top: 4rem;
    margin-bottom: 0px;
}
h1{
    font-size: 3rem;
    line-height: 4rem;
}
h2 {
    font-size: 1.75rem;
    line-height: 2.5rem;
}
h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.hero-title {
    display:flex;
    align-items:center;
    gap: 1rem;
}

p, a, li {
    font-family: 'iA Writer Quattro', serif;
    font-size: 1.125rem;
    line-height: 2rem;
    color: #b0b0b0;
    margin-top: 0.75rem;
    margin-bottom: 0px;
}
a {
    text-decoration-color: #3D3D3D;
    text-decoration-thickness: .055em;
    text-underline-offset: 3.75px;
    text-decoration-skip-ink: auto;
    transition: 0.3s;
    color: #fff;
}
a:hover {
    text-decoration-color: #d1d1d1;
}
.accent{
    color: #fff;
}
ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1.25rem 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-inline: auto;
    max-width: 720px;
}
/*.menu-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}
.menu-toggle img {
    display: block;
}
.menu-toggle:hover {
    background-color: #3d3d3d;
} */
.contact-link {
    font-size: 0.875rem;
    line-height: 1.5rem;
    margin-top: 0;
    color: #b0b0b0;
    text-decoration: none;
}
.contact-link:hover {
    color: #fff;
}
.link-list {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

/* Main Styles */

main {
    margin-inline: auto;
    padding-top: 4rem;
    max-width: 720px;
    padding-bottom: 8rem;
}

/* Footer */
footer {
    margin-inline: auto;
    padding-bottom: 2rem;
    max-width: 720px;
}
footer p{
    font-size: 0.75rem;
    color: #5d5d5d;
}

/* Menu Modal */
/*.menu-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 4.5rem;
    left: 1.5rem;
    background-color: #252525;
    border: 1px solid #5D5D5D;
    border-radius: 16px;
    padding: 1.125rem 0.75rem 0 0.75rem;
    width: 14rem;
}
.menu-modal.active {
    display: block;
}
.menu-section{
    margin-bottom: 1.5rem;
}
.menu-divider{
    font-family: "iA Writer Quattro Bold", serif;
    font-size: 1rem;
    color: #B0B0B0;
    padding: 0 0.5rem 0.25rem 0.5rem;
}
.menu-item {
    margin: 0.25rem 0 0 0;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: 0.3s;
}
.menu-item a {
    text-decoration: none;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.menu-item:hover {
    background-color: #3d3d3d
}*/

/* Theme Toggle Button */
.theme-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 4.5rem;
    right: 1.5rem;
    background-color: #252525;
    border: 1px solid #5D5D5D;
    border-radius: 16px;
    padding: 0.75rem 0.75rem 0.75rem 0.75rem;
}
.theme-modal.active {
    display: block;
}
.theme-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.theme-item {
    padding: 0.5rem;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}
.theme-item svg {
    display: block;
}
.theme-item:hover {
    background-color: #3d3d3d
}

/* Toggle Buttons */
.view-toggle {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #5D5D5D;
    justify-content: flex-start
}
.toggle-btn {
    background-color: transparent;
    border: none;
    color: #b0b0b0;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.toggle-btn.active {
    color: #fff;
    border-bottom: 4px solid #5D5D5D;
}
.toggle-btn.active svg path {
    stroke: #fff;
}
.toggle-btn:hover{
    background-color: #2a2a2a;
}

/* Projects section */

/* Gallery view */
.gallery-view {
    display: none;
    /*grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;*/
}
.gallery-view.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.project-card {
    background-color: #292929;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #5D5D5D;
}
.project-card {
    transform: perspective(900px) rotateX(6deg);
    transition: transform 0.8s cubic-bezier(.4,2,.3,1);
    will-change: transform;
}
.project-card.in-view {
    transform: perspective(900px) rotateX(0deg);
}
.project-image {
    max-inline-size: 100%;
    height: 400px;
    background-color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.project-image img {
    height: 100%;
    object-fit: cover;
}
.project-container {
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items:center;
}
.arrow-icon {
    background: none;
    padding: 0.75rem;
    border: 1px solid #5D5D5D;
    border-radius: 10000px;
    cursor: pointer;
    transition: 0.3s;
}
.arrow-icon:hover {
    border: 1px solid #fff;
}
.arrow-icon svg {
    display: block;
}
.project-title {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #e0e0e0;
    margin: 0;
}
.project-content{
    flex: 1;    
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.project-tags li {
    margin-top: 0.375rem;
}
.tag {
    font-family: 'iA Writer Quattro', serif;
    color: #b0b0b0;
    font-size: 1.125rem;
}

/* Hide table-view by default */
.table-view {
    display: none;
}

/*Table view*/
.table-view.active {
    display: block;
}
.projects-table {
    display: flex;
    width: 100%;
    border-collapse: collapse;
}
.table-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #5D5D5D;
    color: #b0b0b0;
    padding: 0.75rem 0 0.75rem 0;
}
.table-header p{
    font-size: 1.125rem;
    margin-top: 0;
}
.table-column {
    display: flex;
    flex-direction: column;
    min-width: 10rem;
}
.table-cell a{
    padding-left: 1rem;
}
.table-column:first-child div {
    padding-right: 1rem;
}
.table-header {
    padding-left: 1rem;
}
.table-column:not(:first-child) .project-tags {
    padding-left: 1rem;
}
.column-resizer {
    position: relative;
    width: 1px;
    background: #5d5d5d;
    cursor: col-resize;
    z-index: 2;
    /* height: 100%;  // set as needed */
}
.column-resizer::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 7px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
    z-index: 3;
}
.column-resizer:hover, .column-resizer.active {
    background: #5D5D5D;
}
.table-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #5D5D5D;
}
.table-cell a {
    margin-top:0;
}
.table-cell ul li {
    margin-top: 0;
}
.table-cell strong {
    color: #e0e0e0;
}
/*.table-cell .tag{
    padding: 1px 8px 3px 8px;
    border-radius: 8px;
}*/
.table-view span {
    margin-top: 0;
}
.tag-saas {
    color: #FF9E17;
    background-color: rgba(255, 158, 23, 0.10);
    border: 1.5px solid rgba(255, 158, 23, 0.12);
    padding: 1px 8px 3px 8px;
    border-radius: 8px;
}
.tag-scheduling {
    color: #E942FF;
    background-color: rgba(233, 66, 255, 0.10);
    border: 1.5px solid rgba(233, 66, 255, 0.12);
    padding: 1px 8px 3px 8px;
    border-radius: 8px;
}
.tag-b2b {
    color: #8FFF17;
    background-color: rgba(143, 255, 23, 0.10);
    border: 1.5px solid rgba(143, 255, 23, 0.12);
    padding: 1px 8px 3px 8px;
    border-radius: 8px;
}
.tag-b2c {
    color: #A142FF;
    background-color: rgba(161, 66, 255, 0.10);
    border: 1.5px solid rgba(161, 66, 255, 0.12);
    padding: 1px 8px 3px 8px;
    border-radius: 8px;
}
.tag-mobile {
    color: #F0FF17;
    background-color: rgba(240, 255, 23, 0.10);
    border: 1.5px solid rgba(240, 255, 23, 0.12);
    padding: 1px 8px 3px 8px;
    border-radius: 8px;
}
.tag-fintech {
    color: #17FFF7;
    background-color: rgba(23, 255, 247, 0.10);
    border: 1.5px solid rgba(23, 255, 247, 0.12);
    padding: 1px 8px 3px 8px;
    border-radius: 8px;
}
.tag-gamification {
    color: #256AFF;
    background-color: rgba(37, 106, 255, 0.10);
    border: 1.5px solid rgba(37, 106, 255, 0.12);
    padding: 1px 8px 3px 8px;
    border-radius: 8px;
}

/* D3 View */
.d3-view {
    display: none;
}
.d3-view.active {
    display: block;
    height: 480px;
}
#d3-container {
    width: 100%;
    height: 100%;
    position: relative;
}
#d3-container svg {
    width: 100%;
    height: 100%;
}
#d3-container text {
   font-family: 'iA Writer Quattro', serif;
}
.legend-item span {
    font-family: 'iA Writer Quattro', serif;
}
.node {
    cursor: pointer;
    transition: all 0.3s ease;
}
        
.node:hover {
    filter: brightness(1.3);
}
        
.node-circle {
    stroke: #1a1a1a;
    stroke-width: 2;
}
        
.node-label {
    fill: #fff;
    font-size: 12px;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}
        
.link {
    stroke: #444;
    stroke-opacity: 0.6;
    stroke-width: 1.5;
}
        
.legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(42, 42, 42, 0.9);
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
        
.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
}

/*About page */

/* Skills section */
.skills-container, .tech-container {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.skill-row, .tech-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: stretch;
}
.skill-item, .tech-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
    gap: 0.75rem;
    flex: 1 1 0;    /* equal share, allow shrink/grow, zero basis */
    min-width: 0;
    background-color: #292929;
    border-radius: 16px;
    border: 1px solid #5D5D5D;
}
.skill-item p {
    margin-top: 0;
    color: white;
}
.tech-item p {
    margin-top: 0;
    color: white;
}

/* Trivia section */
.trivia-list {
    display: flex;
    flex-direction: column;
}
.trivia-list li {
    list-style-type: square;
}
.trivia-image {
    max-width: 120px;
}
.trivia-image img {
    max-inline-size: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid #5D5D5D;
}

/* Case study page */
.case-study-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.case-study-title h1{
    font-size: 6rem;
    line-height: 6rem;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}
.case-study-image {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    margin-top: 3rem;
    transform: perspective(900px) rotateX(6deg);
    transition: transform 0.8s cubic-bezier(.4,2,.3,1);
    will-change: transform;
}
.case-study-image.in-view {
    transform: perspective(900px) rotateX(0deg);
}
.case-study-image img {
    width: 992px;
    height: auto;
    padding: 1.5rem;
    background-color: #252525;
    border: 1.5px solid #5D5D5D;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.case-study-image-caption {
    margin-left: 0;
    margin-right: 0;
    width: 992px;
}
.case-study-image-caption p {
    margin-top: 0;
    padding: 2rem 10rem;
    background-color: #252525;
    color: #fff;
    border-left: 1.5px solid #5D5D5D;
    border-right: 1.5px solid #5D5D5D;
    border-bottom: 1.5px solid #5D5D5D;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.case-study-details {
    width: 992px;
    margin-top: 4rem;
    margin-bottom: 10rem;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}
.case-study-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.case-study-detail span {
    font-family: 'iA Writer Quattro Bold', serif;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-top: 0;
    color: #B0B0B0;
}
.case-study-detail h2 {
    margin-top: 0;
}
.callout {
    padding: 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 10rem;
}
.callout-orange {
    background-color: rgba(255, 158, 23, 0.10);
    border: 1.5px solid rgba(255, 158, 23, 0.12);
}
.callout-orange .callout-text p:first-child {
    color: #FF9E17
}
.callout p {
    margin-top: 0;
    color: white;
}
.callout-text p:first-child {
    font-family: "iA Writer Quattro Bold", serif;
    margin-bottom: 0.5rem;
}
.contact-section {
    margin-top: 10rem;
}

/*Illustrations page*/
.illustration-gallery {
    max-inline-size: 100%;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.illustration-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    max-width: 100%;
    flex: 1 1 0;
}
.illustration-row img {
    width: 50%;
    height: auto;
    border-radius: 16px;
    border: 1px solid #5D5D5D;
}

@media (max-width: 1024px) {
    body {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .menu-modal {
        left: 0.5rem;
    }
    .case-study-image img {
        width: 100%;
        height: auto;
    }
    .case-study-image-caption {
        width: 100%;
    }
    .case-study-image-caption p{
        padding: 1rem 1rem;
    }
    .case-study-details {
        width: 100%;
    }
}
@media (max-width: 720px) {
    h1 {
        font-size: 2.25rem;
        line-height: 2.75rem;
    }
    h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    p, a, li {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .case-study-title h1 {
        font-size: 3rem;
        line-height: 3rem;
    }
    .case-study-image img {
        padding: 1rem;
    }
    .toggle-btn {
        font-size: 1rem;
    }
    .project-title {
        font-size: 1rem;
    }
    .case-study-details {
        flex-direction: column;
    }
    .tag {
        font-size: 1rem;
    }
    .project-image {
        height: 360px;
    }
}
@media (max-width: 520px) {
    .view-toggle button {
        flex-grow: 1;
    }
    .project-image {
        height: 240px;
    }
    .skill-row h2 {
        font-size: 1.25rem;
        line-height: 2rem;
    }
    .hero-section img {
        display: none;
    }
}
@media (max-width: 440px) {
    h2 {
        margin-top: 2rem;
    }
    .gallery-view.active {
        gap: 1.5rem;
    }
    .table-header p {
        font-size: 1rem;
    }
    .skill-row, .tech-row, .illustration-row {
        flex-direction: column;
    }
    .illustration-row img {
        width: 100%;
    }
    .case-study-image {
        margin-top: 1.5rem;
    }
    .case-study-details {
        margin-bottom: 4rem;
    }
    .callout {
        margin-bottom: 4rem;
    }
    .contact-section {
        margin-top: 4rem;
    }
}