/* Responsive CSS */
html {
  height: 100%;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #000000;
  min-height: 100%;
  line-height: 1.9;
}

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 0px 3px 2px rgba(0, 0, 0, 0.507);
  color: rgb(255, 255, 255);
}

h2 {
  font-size: 2rem;
  
  padding-top: 6rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: #FF5679;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FF5679;
}

.btn {
  background-color: #FFC107;
  color: #000000;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.331);
  border: none;
  cursor: pointer;
   
}

.btn:hover {
  background-color: #FF5679;
  color: #FFF;
  transform: translateY(-2px);
}

header {
  background: linear-gradient(#f3eded,#F96BBA, #FF5679);


  color: #FFF;
  padding-left: 1rem;
  padding-bottom: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  text-align: center;
 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  
 
}
span {
    color: #b9334e;
    font-weight: bold;
    
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav ul li a {
  color: #FFF;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

nav input {
  padding: 0.5rem;
  border-radius: 5px;
  border: none;
  min-width: 150px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.5rem;
  text-align: center;
}

.logo span {
  color: #FF5679;
}

.hero {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero p {
   text-align: left; 
   
}

.featured-Projects {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: -100px auto 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

article {
  background-color: #FFF;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

article:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.about-img {
  width: 100%;
  border-radius: 8px;
  height: 200px;
  object-fit:contain;
  margin-bottom: 10px;
}

.grid article {
  display: flex;
  flex-direction: column;   /* stack content vertically */
  justify-content: space-between; /* push button to bottom */
}
.grid article .btn {
  align-self: center;       /* center horizontally */
  margin-top: auto;         /* ensures button sits at bottom */
}



footer {
  text-align: center;
  font-size: 0.5rem;
  padding: 0.5rem;
  background-color: #000000;
  color: #FFF;
  margin-top: 2rem;
}

footer span {
  color: #FF5679;
  font-weight: bold;
  font-size: 0.5rem;
}

.tablet-mobile-menu {
  display: none;
  
}


/* Responsive Adjustments */
@media (max-width: 1200px) {
  nav {
    padding: 0.5rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }

 
}

@media (max-width: 992px) {
  nav ul {
    gap: 0.5rem;
  }
  
  .featured-Projects {
    margin-top: -80px;
  }
}

@media (max-width: 930px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  nav input {
    width: 100%;
    max-width: 300px;
  }
  
  .hero {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .featured-Projects {
    margin-top: -60px;
  }

.desktop {
  display: none;
}

.tablet-mobile-menu ul { 
  display: none;

}

.tablet-mobile-menu{
  display: block;
 
}

.tablet-mobile-menu ul {
   list-style: none; /* remove bullets */ 
   margin: 0; 
   padding: 0; 
   text-align: center; /* center the buttons */ 
  } 
  
  .tablet-mobile-menu ul li { 
    margin: 10px 0; /* spacing between buttons */ 
  } 
  .tablet-mobile-menu ul li .btn { 
    display: inline-block; /* makes them behave like buttons */ 
    width: 120px;
    text-align: center;
       
  } 


}

@media (max-width: 576px) {
  header {
    padding-bottom: 250px;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  article {
    padding: 1rem;
  }
  
  article img {
    height: 150px;
  }
  
  footer {
    padding: 0.5rem;  
  }
}

@media (max-width: 400px) {
  .logo {
    font-size: 1.25rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
 }