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

:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray: #808080;
    --light-gray: #C0C0C0;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border: 2px solid var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--black);
    position: relative;
}

.nav-dot::before {
    content: attr(data-title);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--black);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover::before {
    opacity: 1;
}

.nav-dot:hover,
.nav-dot.active {
    background: var(--black);
    border-color: var(--black);
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--black);
    color: var(--white);
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.hero-title {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    position: relative;
}

.hero-title-break {
    display: block;
    margin-top: 0.1em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.hero-subtitle-secondary {
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInSubtle 1s ease-in-out 1s forwards;
}

@keyframes fadeInSubtle {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    100% { 
        opacity: 0.7;
        transform: translateY(0);
    }
}

.highlight {
    background: var(--white);
    color: var(--black);
    padding: 0.1em 0.3em;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Redacted Elements */
.redacted-line {
    display: inline-block;
    width: 120px;
    height: 0.15em;
    background: var(--white);
    margin: 0 0.3em;
    vertical-align: middle;
}

.redacted-block {
    display: inline-block;
    width: clamp(60px, 8vw, 100px);
    height: 0.5em;
    background: var(--black);
    margin: 0 0.4em;
    vertical-align: middle;
    transform: translateY(-0.1em);
}

/* Container & Grid System */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

/* Sections */
section {
    padding: 8rem 0;
    position: relative;
}

.about {
    background: var(--white);
}

.experience {
    background: var(--black);
    color: var(--white);
}

.experience .redacted-block {
    background: var(--white);
}

.stack {
    background: var(--white);
}

.side-projects {
    background: var(--black);
    color: var(--white);
}

.side-projects .redacted-block {
    background: var(--white);
}

/* Typography */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    top: 8rem;
    margin-bottom: 2rem;
}

.large-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.body-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.bold {
    /* font-weight: 700; */
}

/* Inline Links */
.inline-link {
    color: var(--black);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-left: 0.3em;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #333;
}

.inline-link:visited {
    color: #CC0000;
}

.external-icon {
    vertical-align: middle;
}

/* Profile Section */
.profile-image-container {
    width: 400px;
    height: 400px;
    overflow: hidden;
    border: 3px solid var(--black);
    margin-top: 2rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transform: scale(2.8) translate(8%, 5%);
}

/* Project Cards */
.project-card {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.project-card:last-child {
    border-bottom: none;
}

.project-card:hover {
    transform: translateX(10px);
}

.project-header {
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: var(--white);
    color: var(--black);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

/* Stack Grid */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.stack-category {
    padding: 2rem;
    background: var(--black);
    color: var(--white);
    transition: transform 0.3s ease;
}

.stack-category:hover {
    transform: scale(1.05);
}

.stack-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.stack-category p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Side Projects */
.side-project-card {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-project-card:last-child {
    border-bottom: none;
}

.side-project-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.side-project-card p {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
    font-weight: 300;
}

/* Keyboard Grid */
.keyboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.keyboard-image {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.7) brightness(1.15);
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.keyboard-detail {
    grid-column: span 2;
    height: 407px;
}

/* Philosophy Section */
.philosophy {
    padding: 12rem 0;
    background: var(--white);
}

.blockquote-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    position: absolute;
    top: -3rem;
    left: -2rem;
    font-size: 12rem;
    opacity: 0.1;
    font-weight: 900;
    line-height: 1;
}

.large-quote {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    text-align: center;
}

.footer-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-link {
    color: var(--black);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-link:hover {
    opacity: 0.7;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--black);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    opacity: 1;
}

.copy-btn:active {
    transform: scale(0.95);
}

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

.footer-note {
    opacity: 0.5;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1024px) {
    .side-nav {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        position: static;
        margin-bottom: 2rem;
    }

    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    .keyboard-grid {
        grid-template-columns: 1fr;
    }

    .keyboard-image {
        height: 220px;
        object-fit: cover;
    }

    .keyboard-detail {
        grid-column: span 1;
        height: 240px;
    }

    .container {
        padding: 0 2rem;
    }

    section {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    .stack-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-subtitle br {
        display: none;
    }

    .redacted-line {
        width: 60px;
    }

    .quote-mark {
        font-size: 8rem;
        top: -2rem;
        left: -1rem;
    }

    .profile-image-container {
        width: 220px;
        height: 220px;
    }

    .keyboard-grid {
        grid-template-columns: 1fr;
    }

    .keyboard-image {
        height: 200px;
        object-fit: cover;
    }

    .keyboard-detail {
        grid-column: span 1;
        height: 220px;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Selection */
::selection {
    background: var(--black);
    color: var(--white);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--white);
}

::-webkit-scrollbar-thumb {
    background: var(--black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}
