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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  font-size: 16px;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 999;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em 2em;
}

nav a {
  margin: 0 1.5em;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #3a834a;
}

.hero {
  text-align: center;
  padding: 8em 1em;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 1.5em;
}

.btn {
  display: inline-block;
  margin: 0.5em;
  padding: 0.8em 1.6em;
  background: #111;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #3a834a;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  padding: 4em 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #fafafa;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card h3 {
  margin: 1em;
  font-size: 1.4rem;
  font-weight: 600;
}

.project-card p {
  margin: 0 1em 1.5em 1em;
  color: #555;
  
}

.project-card {
  margin: 0 auto; 
}


.project-card a {
  display: inline-block;
  margin: 0 1em 1.5em;
  color: #3a834a;
  text-decoration: none;
  font-weight: 500;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

footer {
  text-align: center;
  padding: 2em;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 4em;
}

/*Page Specific Changes*/

/*About Section*/
main, section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2em 1.5em;
  display: flex;
  flex-direction: column; 
  align-items: center;   
  text-align: center;     
}

@media (min-width: 1200px) {
  main, section {
    max-width: 1100px;
  }
}

.hero, .small-hero {
  padding: 6em 2em;
  text-align: center;
}

.content-block {
  display: flex;
  flex-direction: row; 
  align-items: center; 
  justify-content: center; 
  gap: 3em;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
  text-align: left; 
}

.content-block .text {
  flex: 1;
}

.content-block .image {
  flex: 1;
  min-width: 250px;
}

.content-block .image img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .content-block {
    flex-direction: column;
    text-align: center; 
  }
  .content-block .image {
    order: -1; 
    max-width: 100%;
  }
}


main p, section p, .text p {
  text-align: justify; 
  text-justify: inter-word; 
  line-height: 1.7; 
}

main h2, main h3, section h2, section h3 {
  text-align: center;
}

/*Skills section*/
.skills-section {
  max-width: 900px;
  margin: 4em auto;
  text-align: center; 
}

.skills-section h2 {
  font-size: 2rem;
  margin-bottom: 2em;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.skill {
  display: inline-block;
  background: #f5f5f5;
  color: #111;
  font-weight: 500;
  padding: 0.6em 1.2em;
  border-radius: 999px;  
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/*Contact*/
a {
  color: #3a834a;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}


a:hover {
  color: #112415;
}

a:hover::after {
  width: 100%;
}


/*Project Cards*/

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column; 
  justify-content: space-between; 
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; 
}

.project-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


.project-card a {
  margin-top: auto; 
  text-decoration: none;
  color: #3a834a;
  font-weight: bold;
  transition: color 0.3s ease; 
}


