@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background-color: #ffffff;
    color: #333;
}

body.dark-mode {
    background-color: #000000;
    color: #e0e0e0;
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.toggle-icon {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.vertical-name {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 25vw;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-right: 3px solid #000000;
    pointer-events: none; /* allow nav buttons beneath the rotated text to stay clickable */
    overflow: hidden;
    --edge-mask-width: clamp(1px, 0.35vw, 2px);
}

.vertical-name::after,
.vertical-name::before {
    content: '';
    position: absolute;
    top: 0;
    width: var(--edge-mask-width);
    height: 100%;
    background-color: #000000;
    pointer-events: none;
}

.vertical-name::after {
    right: calc(var(--edge-mask-width) / -2);
}

.vertical-name::before {
    left: calc(var(--edge-mask-width) / -2);
}

body.dark-mode .vertical-name {
    background-color: #ffffff;
    border-right-color: #ffffff;
}

body.dark-mode .vertical-name::after,
body.dark-mode .vertical-name::before {
    background-color: #ffffff;
}

.vertical-name h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 12vw;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.08em;
    margin: 0;
    line-height: 1;
    transform: rotate(-90deg) scaleY(3.8) scaleX(1.8);
    transform-origin: center;
    white-space: nowrap;
    transition: color 0.3s ease;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
}

body.dark-mode .vertical-name h1 {
    color: #000000;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.main-content {
    margin-left: 25vw;
    padding: 4rem 4rem 4rem 5rem;
    width: 100%;
    max-width: 1000px;
    min-height: 100vh;
}

nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.nav-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-family: inherit;
}

.nav-btn:hover {
    color: #1a1a1a;
    background-color: #f5f5f5;
}

.nav-btn.active {
    color: #1a1a1a;
    font-weight: 500;
    background-color: #f0f0f0;
}

main {
    min-height: 200px;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

#contact a {
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: #000000;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.dark-mode #contact a {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

body.dark-mode h2 {
    color: #e0e0e0;
}

p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    transition: color 0.3s ease;
}

body.dark-mode p {
    color: #b0b0b0;
}

body.dark-mode .nav-btn {
    color: #999;
}

body.dark-mode .nav-btn.active {
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-btn:hover {
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
    .vertical-name {
        width: 30vw;
    }

    .main-content {
        margin-left: 30vw;
        padding: 3rem 2rem 3rem 3rem;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }

    .toggle-icon {
        width: 36px;
        height: 36px;
    }

    .vertical-name {
        width: 35vw;
    }

    .vertical-name h1 {
        font-size: 14vw;
        letter-spacing: -0.08em;
        transform: rotate(-90deg) scaleY(3.5) scaleX(1.6);
    }

    .main-content {
        margin-left: 35vw;
        padding: 2rem 1.5rem 2rem 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-btn {
        font-size: 0.9rem;
        padding: 0.45rem 1rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
    }

    .toggle-icon {
        width: 32px;
        height: 32px;
    }

    .vertical-name {
        position: static;
        width: 100%;
        height: 120px;
        flex-direction: row;
        --edge-mask-width: 0px;
    }

    .vertical-name h1 {
        transform: rotate(0deg) scaleY(2) scaleX(1.8);
        font-size: 10vw;
        letter-spacing: -0.08em;
        line-height: 1;
    }

    .vertical-name::before,
    .vertical-name::after {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    p {
        font-size: 1rem;
    }
}
