:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --meta-color: #666;
    --highlight-color: #ffff00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 60px 20px;
    max-width: 720px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    position: relative;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.hanko-seal {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e05555;
    box-shadow: 0 0 2px #e05555, inset 0 0 2px #e05555;
    color: #e05555;
    background-color: transparent;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    font-size: 13px;
    transform: rotate(-15deg);
    opacity: 0.8;
    cursor: default;
    user-select: none;
}

.hero-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 20px 0 30px 0;
    border-radius: 8px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: transparent;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.social-links a:hover {
    background: #f5f5f5;
}

.social-icon {
    width: 16px;
    height: 16px;
}

section {
    margin-bottom: 50px;
}

.resume-button {
    background: #000 !important;
    color: #fff !important;
}

.resume-button:hover {
    background: #333 !important;
}

h2 {
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--meta-color);
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    background-color: var(--highlight-color);
    color: #000;
}

ul.project-list {
    list-style: none;
}

li.project-item {
    margin-bottom: 25px;
}

.project-title {
    font-weight: bold;
    font-size: 16px;
}

.stack {
    font-size: 13px;
    color: var(--meta-color);
    font-style: italic;
}

.project-item ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 8px;
}

.project-item ul li {
    margin-bottom: 5px;
    font-size: 14px;
}

#ship {
    display: block;
    margin: 20px 0;
    width: 48px;
    cursor: pointer;
    position: relative;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

#ship.moving {
    animation: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.blog-grid {
    display: grid;
    gap: 20px;
}

.blog-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.blog-card:hover {
    border-color: #999;
}

.blog-meta {
    font-size: 12px;
    color: var(--meta-color);
    display: block;
    margin-bottom: 8px;
}

.blog-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-card h3 a {
    text-decoration: none;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--meta-color);
    margin: 0;
}

/* Terminal Window Styles */
.terminal-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 97%;
    height: 45%;
    background-color: #1a1b26;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 20px;
    color: #fff;
    font-family: monospace;
    transition: all 0.3s ease;
    z-index: 1000;
}

.log-entry,
.input-line {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-family: monospace;
    width: 100%;
}

.prompt {
    color: #4af626;
    text-shadow: 0 0 5px #4af626;
    margin-right: 8px;
    white-space: nowrap;
}

.terminal-text {
    color: #a5b6cf;
    text-shadow: 0 0 5px #a5b6cf, 0 0 10px #a5b6cf;
    word-break: break-all;
}

#cmd-input {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    font-family: monospace;
    font-size: inherit;
    flex-grow: 1;
    color: #a5b6cf;
    text-shadow: 0 0 5px #a5b6cf, 0 0 10px #a5b6cf;
    caret-color: #a5b6cf;
    caret-shape: block;
}

#cmd-input::placeholder {
    color: #555;
}

.minimise {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #f5bf4f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimise::after {
    content: '';
    width: 8px;
    height: 2px;
    background-color: #4a4a4a;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.minimise:hover::after {
    opacity: 1;
}

.terminal-window.minimised {
    height: 40px;
    width: 40px;
    overflow: hidden;
    cursor: pointer;
}

.terminal-window.minimised>*:not(.minimise) {
    display: none;
}

.terminal-window.minimised .minimise {
    background-color: #28c840;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
}

.terminal-window.minimised .minimise::after {
    background-color: transparent;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: none;
}

.terminal-window.minimised .minimise::before,
.terminal-window.minimised .minimise::after {
    content: '';
    position: absolute;
    background-color: #1a1b26;
    width: 50%;
    height: 50%;
}

.terminal-window.minimised .minimise::before {
    top: 2px;
    left: 2px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.terminal-window.minimised .minimise::after {
    bottom: 2px;
    right: 2px;
    clip-path: polygon(100% 100%, 100% 0, 0 100%);
}

/* Hide terminal on mobile */
@media screen and (max-width: 1024px) {
    .terminal-window {
        display: none !important;
    }
}

footer {
    margin-top: 60px;
    font-size: 12px;
    color: var(--meta-color);
    border-top: 1px dashed #ccc;
    padding-top: 20px;
}

/* Learning section list */
#learning ul {
    list-style: disc;
    padding-left: 20px;
}

#learning li {
    margin-bottom: 8px;
}