/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #1f2937;
  color: white;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Header */
/* header {
  padding: 40px 20px;
} */

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  margin-top: 100px;
}

header p {
  color: #b0b0b0;
  font-size: 1.2em;
}

video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

a {
  color: #b0b0b0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  padding: 0 40px;

  background-color: #1f2937;
  color: white;
  border-bottom: 1px solid #374151;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-logo {
  width: 170px;
  cursor: pointer;
  padding-top: 5px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  white-space: nowrap;
  color: #98a0a9;
}

.navbar-links a {
  color: #98a0a9;
  text-decoration: none;
  font-weight: 600;
}

.navbar-links a:hover {
  color: #ffffff;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
}

.styled-divider {
  width: 40vw;
  height: 2px;
  border: none;
  border-radius: 5px; /* Smooth edges */

  background: linear-gradient(to right, #45a049, #b0b0b0);
  margin: 50px auto;
  opacity: 0.8;
}

.text-container {
  max-width: 800px; /* Matches your other pages */
  margin: 60px auto; /* Centers it */
  padding: 0 20px; /* Adds spacing */
}

.projects h2 {
  text-align: center;
}

.project-subheading {
  /* padding-top: 20px; */
  padding-bottom: 30px;
  color: #b0b0b0;
}

/* Adjust Project Styling */
.project-card {
  background: #2d3748;
  padding: 20px;
  border-radius: 8px;
  width: 100%; /* Ensures project content fits container */
  max-width: 100%; /* Makes sure it doesn't go beyond .text-container */
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.project-description {
  font-size: 1em;
  color: #b0b0b0;
  text-align: center;
  max-width: 700px;
  margin: 20px auto;
  line-height: 1.5;
}

/* Buttons */
.buttons {
  display: flex;
  flex-direction: row; /* Makes buttons horizontal */
  padding-top: 30px;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
  width: 100%; /* Ensure it takes full width */
  margin-left: auto;
  margin-right: auto;
}

.buttons a {
  display: inline-block;
  min-width: 100px;
  background: #4caf50;
  color: white;
  padding: 12px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s ease-in-out;
  flex: 1; /* Makes buttons responsive */
  max-width: 250px; /* Prevents excessive stretching */
}

.buttons a:hover {
  background: #45a049;
}

/* Tech Stack */
.tech-stack {
  margin-top: 40px;
  margin-bottom: 80px;
  padding: 20px;
  background: #2d3748;
  border-radius: 8px;
}

.tech-stack svg {
  vertical-align: middle; /* Aligns icons with text */
  margin-right: 3px; /* Adds spacing between icon and text */
  width: 25px; /* Ensures uniform size */
  height: 25px;
  padding-bottom: 2px;
  fill: #45a049;
}

.tech-stack h2 {
  text-align: center;
}

.tech-stack ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.tech-stack li {
  font-size: 1.2em;
  margin: 5px 0;
}

/* Override Termly banner font size */
.termly-styles-bottom-d26761.termly-styles-termly-stretch-c62824,
.termly-styles-bottom-d26761.termly-styles-termly-banner-e1ed59 {
  max-height: 40vh;
}

.termly-styles-p-f5e0b2 {
  font-size: 10px;
  text-align: left;
}

/* --------------- Footer ------------------ */

.footer-container {
  /* margin-left: 20px;
    margin-right: 20px; */
  padding: 20px 40px 50px 40px;
  border-top: 1px solid #374151;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for small screens */
  justify-content: center; /* Center items by default */
}

/* Footer items */
.footer-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 40px; /* Adjust padding for desktop */
  text-decoration: none;
  align-items: center;
  cursor: pointer;
  color: #98a0a9;

  /* border-bottom: 1px solid #374151; */
}

.footer-item.active {
  /* background-color: #3B82F6; */
  color: white;
}

.footer-item:hover {
  color: white;
}

.footer-item .item-text {
  font-size: 14px;
  font-weight: 500; /* Adjust font weight */
}

/* Responsive: Stack buttons vertically on mobile screens */
@media (max-width: 768px) {
  .buttons {
    flex-direction: column; /* Stacks buttons vertically */
    align-items: center; /* Centers buttons */
    gap: 20px; /* Reduces spacing */
    width: 100%;
  }

  .buttons a {
    width: 100%; /* Makes buttons full-width */
    max-width: 90%; /* Slight margin on the sides */
  }

  .footer-container {
    /* flex-direction: column;  */
    align-items: center;
  }

  .footer-item {
    padding: 12px 40px; /* Adjust padding for desktop */
  }

  .navbar {
    position: sticky;
    padding: 0 20px;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 32px;
    background: #1f2937;
    z-index: 1000;
  }

  .navbar-links.active {
    display: flex;
  }
}

@media screen and (max-width: 479px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}
