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

body {
  font-family: Arial, sans-serif;
  background-color: #2c2f33;
  color: #e3e4e6;
  line-height: 1.6;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Banner Section */
.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #4a5660, #2f3b44);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-link {
  display: inline-block;
}

.logo {
  width: 180px;
  height: auto;
  border-radius: 50%;
  border: 4px solid #6cc1e7;
  background-color: #4a5660;
  padding: 8px;
  transition: transform 0.3s ease;
}

.home-link:hover .logo {
  transform: scale(1.05);
}

/* Menu Section */
.menu {
  position: fixed;
  top: 200px;
  left: 0;
  width: 100%;
  background-color: #3a3f45;
  border-bottom: 1px solid #2f343a;
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #6cc1e7 #3a3f45;
}

.menu ul {
  display: flex;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  width: max-content; /* Ensures the menu width adjusts to content */
}

.menu li {
  flex-shrink: 0;
  margin: 0 15px;
}

.menu a {
  text-decoration: none;
  color: #6cc1e7;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s, background-color 0.3s;
  padding: 10px 15px;
  border-radius: 5px;
}

.menu a:hover {
  background-color: #6cc1e7;
  color: #ffffff;
}

.menu a.active {
  background-color: #4a5660;
  color: #ffffff;
  font-weight: bold;
}

.menu::-webkit-scrollbar {
  height: 8px;
}

.menu::-webkit-scrollbar-track {
  background: #3a3f45;
}

.menu::-webkit-scrollbar-thumb {
  background-color: #6cc1e7;
  border-radius: 10px;
  border: 2px solid #3a3f45;
}

/* Content Section */
.content {
  margin: 0 auto;
  padding: 280px 10% 20px;
  flex: 1;
  width: 100%;
  max-width: 1800px;
  overflow-y: auto;
}


.content > div {
  background-color: #2f343a;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contact Form Styling */
form {
  background-color: #2f343a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 20px auto;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #e3e4e6;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #6cc1e7;
  border-radius: 5px;
  background-color: #1f2328;
  color: #e3e4e6;
  font-size: 1rem;
}

input::placeholder, textarea::placeholder {
  color: #7a8288;
}

textarea {
  resize: none;
}

button {
  background-color: #6cc1e7;
  color: #121212;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #4a5660;
  color: #ffffff;
}

/* Portfolio Grid Specific (Applies Only to Portfolio Page) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Dynamic column layout */
  gap: 20px;
  margin-top: 20px;
  justify-content: start; /* Align items to the left */
}

.portfolio-item {
  width: 300px;
  background-color: #2f343a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* Image Styling for Portfolio Items */
.portfolio-item img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.portfolio-item img:hover {
  transform: scale(1.05); /* Zoom effect */
}

/* Project Title Styling */
.portfolio-item h3 {
  margin: 5px 0;
}

.portfolio-item h3 a {
  color: #6cc1e7;
  text-decoration: none;
  transition: color 0.3s;
}

.portfolio-item h3 a:hover {
  color: #ffffff;
}

.portfolio-item p {
  color: #e3e4e6;
  font-size: 0.9rem;
  margin-top: 5px;
  text-align: center;
}
