* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Ubuntu Sans Mono", sans-serif;
  /* background-color: #f4f4f4; */
}

html {
  scroll-behavior: smooth;
}

.italic {
  font-style: italic;
}

/* --------------------------DESKTOP NAV-------------------------- */
nav {
  justify-content: space-around;
  align-items: center;
  height: 15vh;
}

nav,
.nav-links {
  display: flex;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a,
.btn {
  transition: all 300ms ease;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* --------------------------MOBILE NAV-------------------------- */
#mobile-nav {
  display: none;
}

.mobile-menu {
  position: relative;
  display: inline-block;
  z-index: 100;
}

/* Bar Menu in Mobile Nav */
.mobile-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  z-index: 101;
}

.mobile-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 100;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

/* Mobile menu animation */
.mobile-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.mobile-icon.open span:nth-child(2) {
  opacity: 0;
}

.mobile-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

/* --------------------------SECTIONS-------------------------- */
section {
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

#profile {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center;
  gap: 2rem; /* Ensure spacing between terminal and buttons */
}

/* -------------------------- TERMINAL UI -------------------------- */
.terminal {
  width: 90%;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  color: #000000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  margin: auto;
  text-align: left;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminal-header {
  display: flex;
  gap: 6px;
  padding: 5px;
  background-color: #e5e1da;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-link {
  color: #000000;
  text-decoration: none;
  font-weight: inherit;
}

.terminal-link:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-color: rgb(181, 181, 181);
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.terminal-body {
  padding: 15px;
  font-size: 16px;
  line-height: 1.6;
  height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.cursor {
  display: inline-block;
  background-color: #000000;
  width: 8px;
  height: 18px;
  animation: blink 0.8s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hidden {
  display: none;
}

/* --------------------------ABOUT ME (TIMELINE STYLE)-------------------------- */
#about {
    text-align: center;
    padding: 4rem 0;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 700px;
    margin: auto;
    text-align: left;
}

/* Title Styling */
.timeline-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #aaa;
    padding-bottom: 5px;
}

/* Timeline Items */
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 1rem 0;
    gap: 30px;
}

/* Timeline Content */
.timeline-content {
    background: #222;
    color: white;
    padding: 1rem;
    border-radius: 15px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Timeline Hover Effect */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
}

/* Headers Inside Timeline */
.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Text Styling */
.timeline-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    padding-left: 1.5rem;
}

.timeline-content ul li {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

/* --------------------------PROJECTS SECTION -------------------------- */
#projects {
  position: relative;
  text-align: center;
  padding: 4rem 0;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.project-card {
  background: #222;
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card a {
  text-decoration: none;
  color: white;
  display: block;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-content i {
  font-size: 40px;
  margin-bottom: 10px;
}

.project-content h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.tech-stack span {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* --------------------------CONTACT SECTION-------------------------- */
#contact {
  text-align: center;
  padding: 4rem 0;
}

/* Centering the contact card */
.contact-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

/* Light-colored contact card */
.contact-card {
  background: #f8f8f8;
  color: black;
  padding: 1.5rem;
  border-radius: 15px;
  width: 400px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 0.1rem solid rgb(163, 163, 163); /* Subtle border */
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact card icon */
.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: black;
}

/* Contact info layout */
.contact-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 10px;
}

/* Icons for email & LinkedIn */
.contact-info i {
  font-size: 1.5rem;
  color: black;
}

/* Contact links */
.contact-info p {
  font-size: 1rem;
  margin: 0;
}

.contact-info a {
  color: black;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
  color: rgb(163, 163, 163);
}

/* --------------------------FOOTER SECTION-------------------------- */
footer {
  height: 10vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
  color: rgb(85, 85, 85);
}

/* --------------------------ANIMATIONS-------------------------- */
@keyframes blink {
  50% {
    background-color: transparent;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}