/* style.css */
body {
    font-family: 'Roboto Mono', monospace;
    background-color: #0d1117; 
}

/* This is the critical fix to make your content visible */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* This command puts the canvas BEHIND everything else */
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Roboto Mono', monospace;
}

.skill-card, a.project-card {
    display: block;
    background-color: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(45, 212, 191, 0.2);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%; /* Ensures cards in the same row have the same height */
}

.skill-card:hover, a.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(45, 212, 191, 0.2);
}

.tech-tag {
    background-color: #374151;
    color: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: inline-block; /* Fixes potential spacing issues */
}

/* For the reveal-on-scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent header/nav layout shift when logo text animates */
#logo-text {
    display: inline-block;
    width: 12ch;
    white-space: pre;
    letter-spacing: normal;
    line-height: 1;
}

/* Terminal styles */
.terminal-window {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    font-family: 'Roboto Mono', monospace;
}
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(31, 41, 55, 0.8);
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}
.terminal-header .traffic-lights span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.terminal-header .traffic-lights .red { background: #ef4444; }
.terminal-header .traffic-lights .yellow { background: #f59e0b; }
.terminal-header .traffic-lights .green { background: #10b981; }
.terminal-header .title {
    color: #9ca3af;
    font-size: 0.875rem;
}
.terminal-output {
    padding: 0.5rem 1rem 1rem 1rem;
    height: 300px; /* fixed height */
    color: #e5e7eb;
    line-height: 1.3;
    white-space: pre-wrap; /* keep spacing/line breaks */
    overflow-y: auto;
}

#terminal-log { padding-bottom: 0.5rem; }
.terminal-input-row {
    display: flex;
    align-items: center;
    
    padding: 0.5rem;
    width: 100%;
}
.terminal-input-row .prompt { white-space: pre; }
.terminal-input-row input {
   
    width: 100%;
    min-width: 2ch;
    background: transparent !important;
    border: none;
    outline: none;
    color: #e5e7eb;
    font-family: 'Roboto Mono', monospace;
    caret-color: #22d3ee;
    box-shadow: none;
    appearance: none;
    padding: 0;
    margin: 0;
}

/* Remove autofill background on WebKit */
.terminal-input-row input:-webkit-autofill,
.terminal-input-row input:-webkit-autofill:hover,
.terminal-input-row input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    -webkit-text-fill-color: #e5e7eb;
}

.terminal-input-row input:focus {
    background: transparent !important;
    box-shadow: none !important;
}

/* Subtle scrollbar styling */
.terminal-output::-webkit-scrollbar { width: 8px; }
.terminal-output::-webkit-scrollbar-track { background: rgba(31, 41, 55, 0.4); }
.terminal-output::-webkit-scrollbar-thumb { background: rgba(45, 212, 191, 0.45); border-radius: 8px; }
.terminal-output { scrollbar-color: rgba(45,212,191,0.45) rgba(31,41,55,0.4); scrollbar-width: thin; }