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

html, body {
  width: 100%;
  overflow-x: hidden; /* Prevents horizontal scroll */
  font-family: 'Poppins', sans-serif;
  background-color: #f8f8f8;
  color: #333;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5em;
  font-weight: bold;
}

.nav-logo {
  width: 70px;
  height: 60px;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
}

.navbar .nav-links li {
  margin-left: 20px;
}

.navbar .nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.navbar .nav-links a:hover {
  color: #31C3DA;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

/* Project Section */
.projects-section {
  padding: 100px 5% 80px;
  text-align: center;
  max-width: 1300px;
  margin: auto;
}

.project-title{
  color: #31c3da;

}
.projects-section p {
  /* font-size: 2.5em; */
  margin: 50px 50px 0 0;
  font-weight:500;
  color: #1f2937;
  /* color: #31c3da; */
}

.project-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.project-card {
  /* background-color: ; */
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 350px;
  width: 100%;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  padding: 15px;
  color: #1f2937;
}

.project-description {
  padding: 0 15px;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.more-text {
  display: none;
}

.read-more-btn {
  background-color: #facc15;
  color: #1f2937;
  border: none;
  margin: 15px;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.read-more-btn:hover {
  background-color: #eab308;
}

/* Footer */
.footer {
  text-align: center;
  background-color: #1f2937;
  color: #fff;
  padding: 20px;
  margin-top: 50px;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  

  .projects-section {
    padding: 80px 20px;
  }

  .project-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 100%;
    max-width: 90%;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #31C3DA;
  margin: 4px 0;
  border-radius: 2px;
}

/* ✅ Responsive toggle for small screens */

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 200px;
    height: auto;
    background-color: #045268;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 20px; 
    transition: 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
  }
}  
