html, body {
    overscroll-behavior: none;
}

body {
    margin: 0;
    font-family: 'Share Tech Mono', monospace, system-ui;
    font-weight: 400;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

.largetext { font-size: 1.6vw; }
.mediumtext { font-size: 1.45vw; }
.smalltext { font-size: 1.04vw; }
.marginzero { margin: 0; }
.marginbottom20 { margin-bottom: 20px; }

.twocol {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
}

.navigator {
    padding: 70px;
    position: sticky;
    top: 0;
    max-height: 100vh;
    box-sizing: border-box;
    background: #f0f0f0;
    opacity: 0;
    overflow-y: auto;
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #333;
    margin-left: 2px;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
}

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

.contentviewer {
    background: #F6F6F6;
    min-height: 100vh;
}

.content-section {
    padding: 100px;
    opacity: 0;
}

.nav-item {
    cursor: pointer;
    position: relative;
    width: fit-content;
}

.nav-item-contact {
    cursor: pointer;
    position: relative;
    width: fit-content;
}

.nav-item-contact::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-contact:hover::after {
    width: 100%;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover::after {
    width: 100%;
}

.contactlink {
    cursor: pointer;
    position: relative;
    width: fit-content;
    padding-bottom: 0;
}

.contactlink::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contactlink:hover::after {
    width: 100%;
}

.clientItem {
    cursor: pointer;
}

#projectList {
    list-style: none;
    margin: 40px 0px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.project-detail {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 12px;
    margin-top: 20px;
    text-decoration: none;
    color: #000;
    padding-bottom: 4px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-cta .cta-text {
    position: relative;
    display: inline-block;
}

.project-cta .cta-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-cta:hover .cta-text::after {
    width: 100%;
}

.project-cta .cta-arrow {
    display: inline-block;
    font-size: 1.2em;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.project-cta:hover .cta-arrow {
    transform: rotate(-45deg);
}

.tech-category {
    margin-bottom: 30px;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.tech-list li {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-level {
    opacity: 0.5;
    font-size: 0.9em;
}

.experience-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-links a {
    display: inline-block;
    margin-right: 20px;
    color: #333;
    text-decoration: none;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    pointer-events: none;
    gap: 0;
}

.preloader-left {
    background: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    clip-path: inset(0 0 0 0);
}

.preloader-center {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    clip-path: inset(0 0 0 0);
}

.preloader-right {
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0 0 0 0);
}

.preloader-text {
    color: #f0f0f0;
    font-size: 1.5vw;
    margin-bottom: 30px;
    letter-spacing: 0.2em;
}

.loading-bar-container {
    width: 70%;
    height: 2px;
    background: rgba(240, 240, 240, 0.2);
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: #f0f0f0;
    transition: width 0.3s ease;
}

.preloader-logo {
    color: #f0f0f0;
    font-size: 3vw;
    letter-spacing: 0.3em;
    opacity: 0.3;
}

.nav-menu-items {
    opacity: 0;
    transform: translateY(20px);
}

/* ============================================
   TABLET RESPONSIVE (1024px and below)
   ============================================ */
@media (max-width: 1024px) {
    .largetext { font-size: 2.2vw; }
    .mediumtext { font-size: 2vw; }
    .smalltext { font-size: 1.6vw; }
    
    .navigator {
        padding: 50px;
    }
    
    .content-section {
        padding: 60px;
    }
    
    .project-detail {
        grid-template-columns: 180px 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .project-images {
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .experience-item {
        padding: 25px;
        margin-bottom: 25px;
    }
}

/* ============================================
   MOBILE RESPONSIVE (768px and below)
   ============================================ */
@media (max-width: 768px) {
    .largetext { font-size: 28px; }
    .mediumtext { font-size: 20px; }
    .smalltext { font-size: 16px; }
    
    .twocol {
        grid-template-columns: 1fr;
    }
    
    .navigator {
        position: relative;
        height: auto;
        max-height: none;
        padding: 40px 30px;
    }
    
    .nav-header h1 {
        padding-bottom: 15px !important;
    }
    
    #projectList {
        margin: 30px 0;
    }
    
    .content-section {
        padding: 40px 30px;
    }
    
    .project-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .project-images {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .project-cta {
        align-self: flex-start;
        margin-top: 15px;
    }
    
    .experience-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .contact-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-links a {
        margin-right: 0;
    }
    
    #preloader {
        grid-template-columns: 1fr;
    }
    
    .preloader-center, .preloader-right {
        display: none;
    }
    
    .preloader-text {
        font-size: 18px;
    }
    
    .preloader-logo {
        font-size: 32px;
    }
}

/* ============================================
   SMALL MOBILE (480px and below)
   ============================================ */
@media (max-width: 480px) {
    .largetext { font-size: 24px; }
    .mediumtext { font-size: 18px; }
    .smalltext { font-size: 15px; }
    
    .navigator {
        padding: 30px 20px;
    }
    
    .content-section {
        padding: 30px 20px;
    }
    
    .marginbottom20 {
        margin-bottom: 15px;
    }
    
    #projectList {
        margin: 25px 0;
        gap: 0.2rem;
    }
    
    .project-detail {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .project-images {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .experience-item {
        padding: 18px;
        margin-bottom: 18px;
    }
    
    .tech-category {
        margin-bottom: 25px;
    }
    
    .project-cta {
        font-size: 16px;
    }
}