canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cascadia Code', 'Segoe UI Mono', Consolas, monospace;
  background: rgba(10, 10, 10, 1);
  color: #00ffcc;
  margin: 0;
  line-height: 1.5em;
}

nav {
  position: fixed;
  width: 100%;
  padding: 1%;
  z-index: 1;
  top: 0;
  left: 0;
  background: rgba(10, 10, 10, 1);
  border: 1px solid #00ffcc;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.15);
  display: flex;
  height: 100px;
}

#links {
  align-items: center;
  list-style:none;
  display: flex;
  justify-content: right;
  flex: content;
  margin: 0 5%;
  gap: 5%;
}

li a, .projects-label {
  border:1px solid #00ffcc;
  font-size: x-large;
  text-decoration: none;
  color: #ffffff;
  padding: 1rem;
  transition: all 0.3s ease;
}

svg {
  border: 1px solid #00ffcc;
  padding: 1rem;
}

li a:hover {
  color:rgba(10, 10, 10, 1);
  background:#00ffcc;
  border-color:black;
}

#logo {
  height: 100px;
  margin-left: 2.5%;
}

#wordmark {
  align-self: center;
  margin-left: 5%;
  height: 50px;
}

.win-terminal {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid #00ffcc;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.15);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.5s ease-out;
  width: 100%;
  line-height: 1.5;
  height: fit-content;
  margin-top: 80%;
}

.win-terminal.visible {
  opacity: 1;
  transform: translateX(0);
}

.win-terminal-header {
  background: #1a1a1a;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: bold;
  border-bottom: 1px solid #00ffcc;
}

.win-terminal-title {
  color: #7dd3fc;
  font-family: 'Segoe UI', sans-serif;
}

.wingrid {
  display: grid;
  grid-template-areas: "a a a b b";
  grid-template-columns: 3fr 2fr;
  grid-gap: 1%;
}

.win-terminal-body {
  padding: 2rem;
  font-size: 1.1rem;
  color: #00ffcc;
  position: relative;
  overflow: visible;
}

.terminal-img {
  border: 1px solid #00ffcc;
  width: 100%;
  max-width: 700px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease-out;
  display: flex;
  flex-direction: column;
  height: fit-content;
  max-height: 0;
}

#Ty {
  border: 1px solid #00ffcc;
}

#me {
  max-width: 600px;
}

.wys {
  max-height: 450px;
  width: 100%;
}

.terminal-img.visible{
  opacity: 1;
  transform: translateX(0);
  max-height: 1000px;
  margin: 5% auto;
}

.container {
  margin-top: 50%;
}

.container:first-of-type {
  margin: 80% auto;
}

.img-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "a b" "c d";
  grid-gap: 5rem;
  justify-items: center;
  width: fit-content;
  margin: 0 auto;
}

.img-grid2 {
  display: grid;
  grid-template-areas: "a b" "c c";
  grid-gap: 5rem;
  justify-items: center;
  width: fit-content;
  margin: 0 auto;
}

.terminal-line {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.terminal-reveal {
  display: none;
  line-height: 2em;
}

.icon {
  font-size: 3rem;
  transition: transform 0.2s, color 0.3s;
  margin-right: 5%;
}

.icon:hover {
  transform: scale(1.2);
  color: #7dd3fc;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input, textarea {
  color:#00ffcc;
  background:inherit;
  border: 1px solid #00ffcc;
  width: 50%
}

button {
  color: rgba(10, 10, 10, 1);
  background:#00ffcc;
  border: 1px solid rgba(10, 10, 10, 1);
  width: 50%;
  margin: 5% auto;
  transition: all 0.2s ease;
}

button:hover {
  color:#00ffcc;
  background: rgba(10, 10, 10, 1);
  border: 1px solid #00ffcc;
  cursor: pointer;
}

.contact {
  margin: 40% auto 10% auto;
  max-width: 750px;
}

#Ty {
  max-width:fit-content;
  width: fit-content;
}

#calc {
  max-width:fit-content;
  width: fit-content;
}

p {
  justify-content: left;
  text-align: left;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.win-terminal {
  scroll-margin-top: 200px;
}

#long {
  display: none;
}

#flow {
  grid-area: c;
}

footer {
  background: rgba(10, 10, 10, 0.9);
  padding: 1rem;
  margin: 0 auto;
}

footer p {
  position: relative;
  text-align: center;
  z-index: 99;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: default;
}

.projects-label {
  font-size: x-large;
  color: white;
}

.caret-icon {
  cursor: pointer;
  transition: all 0.3s ease;
  stroke: #fff;
}

.dropdown.open .caret-icon {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(10, 10, 10, 1);
  border: 1px solid #00ffcc;
  min-width: 250px;
  z-index: 2;
  top: 100%;
  left: 0;
  padding: 0;
  margin-top: 10px;
  flex-direction: column;
}

.dropdown-content li {
  list-style: none;
  border-bottom: 1px solid #00ffcc;
}

.dropdown-content li a {
  display: block;
  padding: 1rem;
  color: #ffffff;
  text-decoration: none;
  font-size: large;
}

.dropdown-content li a:hover, .caret-icon:hover {
  background: #00ffcc;
  color: #000;
  stroke: #000;
}

.dropdown.open .dropdown-content {
  display: flex;
}