@charset "utf-8";

/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  background-image: url(../images/background.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  box-sizing: border-box;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #333333;
  padding: 10px 0;
  text-align: center;
  z-index: 1000;

}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #F4971F;
  font-size: 25px;
  padding: 8px 12px;
  transition: 0.3s;
  font-family: "montserrat-alternates";
  font-weight: bold;
}

nav ul li a:hover {
  border-radius: 5px;
}

/* Top Banner */
.top-projects {
  margin-top: 70px;
  display: block;
  max-width: 100%;
  transform: scale(0.7);
  margin-bottom: -200px;
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 250px auto 2rem auto; /* <-- This adds top margin */
  border: 3px solid #F4971F;
  border-radius: 16px;
  padding: 2rem;
  background-color: #9F3995; /* optional for contrast */
}


/* Project Card */
.project-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.3s ease;
	
  border: 2px solid #F4971F;
  border-radius: 12px;
  padding: 1rem;
  background-color: #333333;
  box-shadow: 0.3s ease;
}


.project-card:hover {
  transform: scale(1.05);
	 
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 250px; /* fixed height */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.project-card h3 {
  margin-top: 1rem;
  font-family: "montserrat-alternates", sans-serif;
  font-size: 2rem;
  color: #F4971F;
}

/* Bottom Image */
.bottom-image {
  max-width: 900px;
  float: right;
  margin-left: 20px;
  margin-top: -150px;
}

/* Responsive Typography */
h1, h2 {
  font-size: 4rem;
  font-family: "montserrat-alternates";
  font-weight: bold;
  color: #333333;
  text-align: center;
}

h2 {
  margin: 0 auto;
}

p {
  font-size: 1rem;
  max-width: 600px;
  margin: 20px auto;
  font-family: "montserrat";
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  h1, h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }
}


