html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #7b5ea0;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #0d0d0d;
  color: #f1f1f1;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
a {
  color: #90caf9;
}
header, footer{
  background: linear-gradient(to bottom, #1e1e1e, #151515);
  padding: 1rem;
}
nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}
nav li{
  color: #ffffff;
}
nav a {
  color: #ffffff;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
main {
  padding: 2rem;
  flex: 1;
}
#typing-subheader {
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: white; }
}
.nav-main {
  font-family: 'Courier New', monospace;
  background-color: #121212;
}
.nav-main:hover {
  background-color: #1e1e1e;
}
.home-div {
  flex-direction: column;
  justify-content: space-between;
}
.terminal-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: transparent;
}
.win-terminal {
    background: #0b0c10;
    border-radius: 6px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 25px rgba(80, 0, 120, 0.45);
    font-family: "Fira Code", monospace;
    color: #ccc;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: linear-gradient(to bottom, #1e1e1e, #151515);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-title {
    color: #aaa;
    font-size: 0.9rem;
    user-select: none;
}
.terminal-buttons {
    display: flex;
    gap: 6px;
}
.winbtn {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #222;
    border-radius: 2px;
    cursor: pointer;
}
.winbtn:hover {
    background: #333;
}
.winbtn.close:hover { background: #6b1a9a; }
.winbtn.maximize:hover { background: #34204e; }
.winbtn.minimize:hover { background: #34204e; }

.terminal-body {
    padding: 20px;
    line-height: 1.6;
}

.terminal-line.command {
    color: #33ffd0;
}

.terminal-line.response {
    color: #ddd;
    margin-left: 1.5rem;
}
.typing-target {
    position: relative;
    min-height: 1.4em;
    color: #ddd;
    font-size: 1rem;
    letter-spacing: 0.3px;
}
.caret {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: #33ffd0;
    margin-left: 6px;
    vertical-align: text-bottom;
    animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
    50% { opacity: 0; }
}
.blink-slow {
    animation: caret-blink 1.4s steps(1) infinite;
}
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.skill {
    background: rgba(128, 0, 128, 0.1);
    border: 1px solid rgba(128, 0, 128, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #e0d6ff;
}
.background-section {
    margin-top: 20px;
}
.background-section .cmd-output {
    font-family: "Fira Code", monospace;
    font-size: 0.95rem;
    color: #dcd6f7;
    line-height: 1.5;
    white-space: pre-wrap;
}
.philosophy-section {
    margin-top: 20px;
}
.philosophy-section .cmd-output {
    font-family: "Fira Code", monospace;
    font-size: 0.95rem;
    color: #dcd6f7; 
    line-height: 1.5;
    white-space: pre-wrap;
}
.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-left: 20px; 
    padding-bottom: 12px;
}

.terminal-input-line .terminal-line.command {
    margin-right: 8px;
    color: #33ffd0;
    font-weight: 600;
}
.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #33ffd0;
    font-family: "Fira Code", monospace;
    font-size: 0.95rem;
    flex: 1;
    caret-color: #33ffd0;
    padding-left: 0; 
    margin: 0;
}
.terminal-form .terminal-line {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-left: 20px;
}
.terminal-form input,
.terminal-form textarea {
    background: transparent;
    border: 1px solid rgba(128,0,128,0.2);
    border-radius: 6px;
    color: #ddd;
    font-family: "Fira Code", monospace;
    font-size: 0.95rem;
    padding: 4px 8px;
    flex: 1;
    margin-left: 8px;
    outline: none;
    caret-color: #33ffd0;
}
.terminal-submit {
    background: transparent;
    border: 1px solid #33ffd0;
    color: #33ffd0;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: "Fira Code", monospace;
    cursor: pointer;
}
.terminal-submit:hover {
    background: rgba(51, 255, 208, 0.1);
}
.home-terminal {
    background: #0d0d0d;
    color: #ddd;
    font-family: "Fira Code", monospace;
}
.logo {
    width: 200px;
    height: 200px;
    box-shadow: 0 0 20px rgba(128,0,128,0.7);
}
.help-menu {
    border: 1px solid rgba(128,0,128,0.3);
    padding: 16px;
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
    max-width: 400px;
}
.home-terminal {
    background: #0d0d0d;
    color: #ddd;
    font-family: "Fira Code", monospace;
}
.logo {
    width: 200px;
    height: 200px;
    box-shadow: 0 0 20px rgba(128,0,128,0.7);
}
.terminal-line.homeresponse {
    margin: 4px 0;
    color: #33ffd0;
}
.hidden {
    display: none !important;
}
.home-terminal .button-group a {
    background: #0d0d0d; 
    border: 1px solid rgba(128,0,128,0.7);
    color: #33ffd0; 
    padding: 8px 16px;
    border-radius: 4px;
    font-family: "Fira Code", monospace;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.home-terminal .button-group a:hover {
    background: rgba(128,0,128,0.2);
    color: #fff;
    box-shadow: 0 0 8px rgba(128,0,128,0.8);
}
.terminal-scroll {
    height: 150px; 
    overflow: hidden;
    background: #0d0d0d;
    padding: 10px;
    border-radius: 6px;
    font-family: "Fira Code", monospace;
    color: #33ffd0;
    text-align: left;
}
.home-terminal .button-group a {
    background: #0d0d0d;
    border: 1px solid rgba(128,0,128,0.7);
    color: #33ffd0;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: "Fira Code", monospace;
    text-decoration: none;
    transition: all 0.2s ease-in-out, box-shadow 0.4s ease-in-out;
}
.home-terminal .button-group a:hover {
    background: rgba(128,0,128,0.2);
    color: #fff;
    box-shadow: 0 0 10px #33ffd0, 0 0 20px rgba(128,0,128,0.7);
}
.home-terminal .button-group a {
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        box-shadow: 0 0 6px rgba(128,0,128,0.7), 0 0 12px rgba(128,0,128,0.7);
    }
    to {
        box-shadow: 0 0 12px rgba(128,0,128,0.7), 0 0 24px rgba(128,0,128,0.7);
    }
}
