/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0b1a0f;
    color: #d4e8d0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    font-size: 16px;
}

/* === TERMINAL FRAME === */
.terminal-frame {
    border: 1px solid #2a4a30;
    border-radius: 8px;
    margin: 12px;
    min-height: calc(100vh - 24px);
    position: relative;
    overflow: hidden;
}

/* === TITLE BAR === */
.title-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #0f2214;
    border-bottom: 1px solid #2a4a30;
    position: sticky;
    top: 0;
    z-index: 50;
}

.traffic-lights {
    display: flex;
    gap: 7px;
    margin-right: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #c25d5d; }
.dot-yellow { background: #e8b86d; }
.dot-green { background: #7dcea0; }

.title-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #7dcea0;
    opacity: 0.7;
    flex: 1;
}

.cmd-trigger {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #7dcea0;
    background: #142b1a;
    border: 1px solid #2a4a30;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cmd-trigger:hover {
    background: #1e3a24;
    color: #d4e8d0;
}

/* === VINE BORDER === */
.vine-border {
    position: absolute;
    left: 0;
    top: 42px;
    bottom: 0;
    width: 30px;
    z-index: 5;
    pointer-events: none;
}

.vine-svg {
    width: 100%;
    height: 100%;
}

/* === MASONRY CONTAINER === */
.masonry-container {
    column-count: 3;
    column-gap: 20px;
    padding: 24px 24px 24px 40px;
}

/* === MASONRY ITEM === */
.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: #142b1a;
    border: 1px solid #1e3a24;
    border-radius: 4px;
    padding: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    overflow: hidden;
}

.masonry-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === COMMAND HEADERS === */
.item-command {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #7dcea0;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* === TYPOGRAPHY === */
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: #d4e8d0;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #d4e8d0;
    margin-bottom: 12px;
}

.sub-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: #d4e8d0;
    margin-bottom: 10px;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: #d4e8d0;
    margin-bottom: 10px;
}

.body-text:last-child {
    margin-bottom: 0;
}

.body-light {
    opacity: 0.7;
}

.terminal-output {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #7dcea0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.quote-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 15px;
    color: #d4869c;
    line-height: 1.7;
    border-left: 2px solid #e8b86d;
    padding-left: 14px;
}

code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9em;
    color: #7dcea0;
    background: #0b1a0f;
    padding: 1px 5px;
    border-radius: 3px;
}

/* === STATUS BLOCK === */
.status-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #d4e8d0;
    opacity: 0.7;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2a4a30;
}

.status-dot.active {
    background: #7dcea0;
    box-shadow: 0 0 6px #7dcea0;
}

/* === PROJECT ENTRIES === */
.project-entry {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1e3a24;
}

.project-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #7dcea0;
    display: block;
    margin-bottom: 4px;
}

.project-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #d4e8d0;
    opacity: 0.7;
}

/* === MUSIC BARS === */
.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 16px;
}

.bar {
    width: 6px;
    background: #7dcea0;
    border-radius: 2px 2px 0 0;
    animation: barPulse 1.2s ease-in-out infinite;
}

.bar:nth-child(1) { height: 60%; animation-delay: 0s; }
.bar:nth-child(2) { height: 40%; animation-delay: 0.1s; }
.bar:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 30%; animation-delay: 0.3s; }
.bar:nth-child(5) { height: 70%; animation-delay: 0.15s; }
.bar:nth-child(6) { height: 50%; animation-delay: 0.25s; }
.bar:nth-child(7) { height: 90%; animation-delay: 0.05s; }
.bar:nth-child(8) { height: 45%; animation-delay: 0.35s; }

@keyframes barPulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* === CONTACT === */
.contact-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #7dcea0;
    margin-top: 12px;
}

.prompt-char {
    color: #e8b86d;
    margin-right: 6px;
}

/* === SVG VINE DECORATIONS === */
.vine-decoration {
    display: block;
    margin-top: 12px;
}

.vine-grow path,
.vine-grow circle {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.revealed .vine-grow path,
.revealed .vine-grow circle {
    stroke-dashoffset: 0;
}

/* === FIREFLY === */
#firefly {
    position: fixed;
    width: 8px;
    height: 14px;
    background: #7dcea0;
    border-radius: 2px;
    z-index: 60;
    pointer-events: none;
    box-shadow: 0 0 12px 4px rgba(125, 206, 160, 0.4);
    animation: fireflyMove 20s linear infinite, fireflyBlink 1.06s step-end infinite;
}

@keyframes fireflyBlink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

@keyframes fireflyMove {
    0%   { top: 15%; left: 80%; }
    10%  { top: 30%; left: 20%; }
    20%  { top: 55%; left: 65%; }
    30%  { top: 20%; left: 40%; }
    40%  { top: 70%; left: 85%; }
    50%  { top: 45%; left: 10%; }
    60%  { top: 80%; left: 50%; }
    70%  { top: 10%; left: 70%; }
    80%  { top: 60%; left: 30%; }
    90%  { top: 35%; left: 90%; }
    100% { top: 15%; left: 80%; }
}

/* === COMMAND PALETTE === */
#command-palette {
    position: fixed;
    inset: 0;
    background: rgba(11, 26, 15, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

#command-palette.active {
    display: flex;
}

.palette-box {
    background: #142b1a;
    border: 1px solid #2a4a30;
    border-radius: 8px;
    padding: 24px;
    min-width: 320px;
    max-width: 420px;
}

.palette-header {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #7dcea0;
    margin-bottom: 16px;
}

.palette-commands {
    list-style: none;
}

.palette-commands li {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #d4e8d0;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.palette-commands li:hover {
    background: #1e3a24;
}

.cmd-prefix {
    color: #e8b86d;
    margin-right: 8px;
}

.palette-hint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #f0f5f0;
    opacity: 0.4;
    margin-top: 16px;
    text-align: center;
}

.palette-hint kbd {
    font-family: 'IBM Plex Mono', monospace;
    background: #0b1a0f;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #2a4a30;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .masonry-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-container {
        column-count: 1;
        padding: 16px 16px 16px 16px;
    }

    .vine-border {
        display: none;
    }
}
