body {
  background-color: black;
  color: white;
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 0;
}

/* ----navigatioon styling----- */

nav {
  display: flex;
  justify-content: flex-end;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 1em;
}

nav a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

.about {
  text-align: center;
  padding: 100px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.about a {
  color: #1e90ff;
  text-decoration: none;
}

.about h1 {
  font-size: 3em;
  color: #ffcc00;
  margin-bottom: 20px;
}

.about p {
  font-size: 1.2em;
  color: #dcdcdc;
}

#typing-effect {
  font-size: 3em;
  color: #ffcc00;
  margin-bottom: 20px;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  position: relative;
}

#typing-effect::after {
  content: "";
  position: absolute;
  right: -0.25em;
  top: 0;
  width: 0.6em;
  height: 1em;
  background-color: #ffcc00;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* ----terminal styling----- */

.terminal {
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
  max-width: 800px;
  margin: 40px auto;
  padding: 0;
  font-size: 1.1em;
}

.terminal-header {
  display: flex;
  align-items: center;
  background-color: #2d2d2d;
  height: 30px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 0 10px;
  justify-content: space-between;
}

.terminal-header .circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.terminal-header .circle.red {
  background-color: #ff5f57;
}

.terminal-header .circle.yellow {
  background-color: #febc2e;
}

.terminal-header .circle.green {
  background-color: #28c940;
}

.terminal-header .terminal-title {
  margin-left: auto;
  color: #dcdcdc;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.terminal-body {
  padding: 20px;
}

.command {
  margin-bottom: 15px;
}

.prompt {
  color: #32cd32;
  font-weight: bold;
}

.output {
  color: #ffa500;
  margin-left: 10px;
}

.output a {
  color: #1e90ff;
  text-decoration: none;
}

.output a:hover {
  text-decoration: underline;
}

/* ----projects styling----- */

.projects {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.projects h1 {
  font-size: 2.5em;
  color: #cccccc;
  margin-bottom: 30px;
  text-align: center;
}

.project {
  background-color: #2d2d2d;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.project p a {
  color: #1e90ff;
  text-decoration: none;
}

.project-content {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px;
  align-items: flex-start; /* Align items to the top */
}

.image-container {
  flex: 1;
  min-width: 250px; /* Minimum width for the image container */
  max-width: 300px; /* Maximum width for the image container */
  height: 200px; /* Fixed height for images */
  overflow: hidden;
  border-radius: 10px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio */
}

.project-details {
  flex: 2;
}

.project h2 {
  font-size: 1.8em;
  color: #ffcc00;
  margin-bottom: 15px;
}

.project p {
  font-size: 1.1em;
  color: #dcdcdc;
  margin-bottom: 20px;
}

.technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.technologies span {
  background-color: #1e1e1e;
  color: #ffcc00;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9em;
}

.project-links {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn i {
  font-size: 1.2em;
}

.live-demo {
  background-color: #ffcc00;
  color: white;
  border: none;
}

.live-demo:hover {
  background-color: #ffb000;
}

.view-source {
  background-color: transparent;
  color: #ffcc00;
  border: 2px solid #ffcc00;
}

.view-source:hover {
  background-color: #ffb000;
  color: white;
}

/* ----contact styling----- */
.contact {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact h1 {
  font-size: 2em;
  color: #ffcc00;
  margin-bottom: 20px;
}

.contact p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #dcdcdc;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.contact-links .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-links .btn i {
  font-size: 1.2em;
}

.contact-links .email {
  background-color: transparent;
  color: #ffcc00;
  border: 2px solid #ffcc00;
}

.contact-links .email:hover {
  background-color: #d32f2f;
}

.contact-links .linkedin {
  background-color: transparent;
  color: #ffcc00;
  border: 2px solid #ffcc00;
}

.contact-links .linkedin:hover {
  background-color: #005582;
}

.contact-links .github {
  background-color: transparent;
  color: #ffcc00;
  border: 2px solid #ffcc00;
}

.contact-links .github:hover {
  background-color: #2dba4e;
}

.footer {
  text-align: center;
  padding: 20px;
  color: gray;
  margin-top: 50px;
  font-size: 0.9em;
}
